IFont Interface |
Namespace: Spire.Xls.Core
The IFont type exposes the following members.
| Name | Description | |
|---|---|---|
|
|
Color |
Gets / sets font color. Searches for the closestes color in
the workbook palette.
|
|
|
FontName |
Returns or sets the font name. Read / write string.
|
|
|
IsAutoColor |
Indicates whether color is automatically selected. Read-only.
|
|
|
IsBold |
True if the font is bold. Read / write Boolean.
|
|
|
IsItalic |
True if the font style is italic. Read / write Boolean.
|
|
|
IsStrikethrough |
True if the font is struck through with a horizontal line.
Read / write Boolean
|
|
|
IsSubscript |
True if the font is formatted as subscript.
False by default. Read / write Boolean.
|
|
|
IsSuperscript |
True if the font is formatted as superscript. False by default.
Read/write Boolean
|
|
|
KnownColor |
Returns or sets the primary color of the object, as shown in the
following table. Use the RGB function to create a color value.
Read / write Integer.
|
|
|
Parent |
Gets the parent object of the current instance.
(Inherited from
IExcelApplication
.)
|
|
|
Size |
Returns or sets the size of the font. Read / write Variant.
|
|
|
StrikethroughType |
Strikethrough Type.
Read / write sngStrike dblStrike
|
|
|
Underline |
Returns or sets the type of underline applied to the font. Can
be one of the following FontUnderlineTypeStyle constants.
Read / write FontUnderlineType.
|
|
|
VerticalAlignment |
Gets / sets font vertical alignment.
|
| Name | Description | |
|---|---|---|
|
|
BeginUpdate |
This method should be called before several updates to the object will take place.
(Inherited from
IOptimizedUpdate
.)
|
|
|
EndUpdate |
This method should be called after several updates to the object took place.
(Inherited from
IOptimizedUpdate
.)
|
|
|
GenerateNativeFont |
Generates .Net font object corresponding to the current font.
|
|
|
GetThemeColor |
Get the theme color.
|
|
|
SetThemeColor |
Set the theme color.
|