Abstract base class which controls the formatting of a range of characters in a [[FormattedString]] or [[FormattedText]].

FormattedFontBase

new FormattedFontBase(a: IFormattedItem, b: number, c: number): FormattedFontBase

Returns FormattedFontBase

$t: Type
bold: boolean
colorInfo: WorkbookColorInfo
height: number
italic: boolean
name: string
strikeout: boolean
superscriptSubscriptStyle: FontSuperscriptSubscriptStyle
underlineStyle: FontUnderlineStyle

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

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

Sets all properties of this font to the properties of the specified font.

setFontFormatting(source: IWorkbookFont): void

Parameters

  • source: IWorkbookFont

    The font whose properties should be copied over to this font.

Returns void