Controls the formatting of a range of characters in a [[formattedString]].
Constructors
Section titled "Constructors"FormattedStringFont
new FormattedStringFont(a: FormattedString, b: number, c: number): FormattedStringFont Returns FormattedStringFont
Properties
Section titled "Properties"$t: Type Accessors
Section titled "Accessors"Inherited from: FormattedFontBase
Gets or sets the value indicating whether the font is bold.
get bold(): boolean | null
Returns boolean | null
set bold(a: boolean | null): void Parameters
- a:
boolean | null
Returns void
colorInfo
Section titled "colorInfo"Inherited from: FormattedFontBase
Gets or sets the fore color of the font.
get colorInfo(): WorkbookColorInfo
Returns WorkbookColorInfo
formattedString
Section titled "formattedString"Gets the formatted string which is controlled by this font. The formatted string which is controlled by this font.
get formattedString(): FormattedString
Returns FormattedString
height
Section titled "height"Inherited from: FormattedFontBase
Gets or sets the height of the font.
get height(): number
Returns number
set height(a: number): void Parameters
- a:
number
Returns void
italic
Section titled "italic"Inherited from: FormattedFontBase
Gets or sets the value indicating whether the font is italic.
get italic(): boolean | null
Returns boolean | null
set italic(a: boolean | null): void Parameters
- a:
boolean | null
Returns void
length
Section titled "length"Inherited from: FormattedFontBase
Gets the number of characters covered by this font. Zero indicates the font controls from the [[startIndex]] to the end of the string. The number of characters covered by this font. Zero indicates the font controls from the StartIndex to the end of the string.
get length(): number
Returns number
Inherited from: FormattedFontBase
Gets or sets the name of the font.
get name(): string
Returns string
set name(a: string): void Parameters
- a:
string
Returns void
startIndex
Section titled "startIndex"Inherited from: FormattedFontBase
Gets the index of the first character covered by this font. The index of the first character covered by this font.
get startIndex(): number
Returns number
strikeout
Section titled "strikeout"Inherited from: FormattedFontBase
Gets or sets the value indicating whether the font is struck out.
get strikeout(): boolean | null
Returns boolean | null
set strikeout(a: boolean | null): void Parameters
- a:
boolean | null
Returns void
superscriptSubscriptStyle
Section titled "superscriptSubscriptStyle"Inherited from: FormattedFontBase
Gets or sets the value indicating whether the font is superscript or subscript.
get superscriptSubscriptStyle(): FontSuperscriptSubscriptStyle
Returns FontSuperscriptSubscriptStyle
underlineStyle
Section titled "underlineStyle"Inherited from: FormattedFontBase
Gets or sets the underline style of the font.
get underlineStyle(): FontUnderlineStyle
Returns FontUnderlineStyle
Methods
Section titled "Methods"setFontFormatting
Section titled "setFontFormatting"Inherited from: FormattedFontBase
Sets all properties of this font to the properties of the specified font.
setFontFormatting(source: IWorkbookFont): void Parameters
- source:
IWorkbookFontThe font whose properties should be copied over to this font.