ApiFont
class ApiFont
Description
Class that contains the font attributes (font name, font size, color, and so on).
Instance Methods
- GetParent
(): ApiCharacters
Returns the parent ApiCharacters object of the specified font.
- GetBold
(): boolean | "null"
Returns the bold property of the specified font.
- SetBold
(isBold)
Sets the bold property to the specified font.
- GetItalic
(): boolean | "null"
Returns the italic property of the specified font.
- SetItalic
(isItalic)
Sets the italic property to the specified font.
- GetSize
(): number | "null"
Returns the font size property of the specified font.
- SetSize
(Size)
Sets the font size property to the specified font.
- GetStrikethrough
(): boolean | "null"
Returns the strikethrough property of the specified font.
- SetStrikethrough
(isStrikethrough)
Sets the strikethrough property to the specified font.
- GetUnderline
(): XlUnderlineStyle | "null"
Returns the type of underline applied to the specified font.
- SetUnderline
(Underline)
Sets an underline of the type specified in the request to the current font.
- GetSubscript
(): boolean | "null"
Returns the subscript property of the specified font.
- SetSubscript
(isSubscript)
Sets the subscript property to the specified font.
- GetSuperscript
(): boolean | "null"
Returns the superscript property of the specified font.
- SetSuperscript
(isSuperscript)
Sets the superscript property to the specified font.
- GetName
(): string | "null"
Returns the font name property of the specified font.
- SetName
(FontName)
Sets the font name property to the specified font.
- GetColor
(): ApiColor | "null"
Returns the font color property of the specified font.
- SetColor
(Color)
Sets the font color property to the specified font.
Instance Properties
- Parent
ApiCharacters
The parent object of the specified font object.
- Bold
boolean | "null"
The font bold property.
- Italic
boolean | "null"
The font italic property.
- Size
number | "null"
The font size property.
- Strikethrough
boolean | "null"
The font strikethrough property.
- Underline
string | "null"
The font type of underline.
- Subscript
boolean | "null"
The font subscript property.
- Superscript
boolean | "null"
The font superscript property.
- Name
string | "null"
The font name.
- Color
ApiColor | "null"
The font color property.