Click or drag to resize

ExcelFont Class

Represents a font in an Excel worksheet.
Inheritance Hierarchy
System Object
Spire.Xls ExcelFont

Namespace: Spire.Xls
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class ExcelFont : IFont, IExcelApplication, 
	IOptimizedUpdate

The ExcelFont type exposes the following members.

Properties
Name Description
Public property Color
Returns or sets the primary color of the font.
Public property FontName
Returns or sets the font name. Read / write string.
Public property IsAutoColor
Indicates whether color is automatically selected. Read-only.
Public property IsBold
True if the font is bold.
Public property IsItalic
True if the font style is italic. Read / write Boolean.
Public property IsStrikethrough
True if the font is struck through with a horizontal line. Read / write Boolean
Public property IsSubscript
True if the font is formatted as subscript. False by default. Read / write Boolean.
Public property IsSuperscript
True if the font is formatted as superscript. False by default. Read/write Boolean
Public property KnownColor
Returns or sets the primary excel color of the object.
Public property Parent
Gets the parent object of the current instance.
Public property Size
Returns or sets the size of the font. Read / write integer.
Public property StrikethroughType
Gets or sets the strikethrough type.
Public property Underline
Returns or sets the type of underline applied to the font.
Public property VerticalAlignment
Gets / sets font vertical alignment.
Top
Methods
Name Description
Public method BeginUpdate
Begins a update on the font.
Public method EndUpdate
Ends the update process of the font.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GenerateNativeFont
Generates system font object.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetThemeColor
Get the theme color.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method SetThemeColor
Set the theme color.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also