FontWrapper module

class FontWrapper.FontWrapper

Bases: CommonWrapper, IInternalFont

BeginUpdate()
Clone(book: XlsWorkbook, parent: SpireObject, dicFontIndexes: IDictionary) FontWrapper
property Color: Color
<summary>

Returns or sets the primary color of the font.

</summary>

ColorObjectUpdate()
EndUpdate()
property Font: XlsFont
<summary>

Returns internal font.

</summary>

property FontIndex: int
property FontName: str
<summary>

Returns or sets the font name. Read / write string.

</summary>

GenerateNativeFont() Font
property Index: int
<summary>

Returns index of the font. Read-only.

</summary>

property IsAutoColor: bool
property IsBold: bool
<summary>

True if the font is bold.

</summary>

property IsItalic: bool
<summary>

True if the font style is italic. Read / write Boolean.

</summary>

property IsReadOnly: bool
<summary>

Indicates whether font is read-only.

</summary>

property IsStrikethrough: bool
<summary>
True if the font is struck through with a horizontal line.

Read / write Boolean

</summary>

property IsSubscript: bool
<summary>
True if the font is formatted as subscript.

False by default. Read / write Boolean.

</summary>

property IsSuperscript: bool
<summary>
True if the font is formatted as superscript. False by default.

Read/write Boolean

</summary>

property KnownColor: ExcelColors
<summary>

Returns or sets the primary excel color of the object.

</summary>

property MacOSOutlineFont: bool
<summary>

True if the font is an outline font. Read / write Boolean.

</summary>

property MacOSShadow: bool
<summary>
True if the font is a shadow font or if the object has

a shadow. Read / write Boolean.

</summary>

property Parent: SpireObject
SetThemeColor(type: ThemeColorType, tint: float)
property Size: float
<summary>

Returns or sets the size of the font. Read / write integer.

</summary>

property StrikethroughType: str
property Underline: FontUnderlineType
<summary>

Returns or sets the type of underline applied to the font.

</summary>

property VerticalAlignment: FontVertialAlignmentType
property Workbook: XlsWorkbook
<summary>

Returns workbook.

</summary>