Abstract base class which controls the formatting of a range of characters in a [[FormattedString]] or [[FormattedText]].
Constructors
Section titled "Constructors"FormattedFontBase
new FormattedFontBase(a: IFormattedItem, b: number, c: number): FormattedFontBase Returns FormattedFontBase
Properties
Section titled "Properties"$t: Type bold: boolean colorInfo
Section titled "colorInfo"colorInfo: WorkbookColorInfo height
Section titled "height"height: number italic
Section titled "italic"italic: boolean name: string strikeout
Section titled "strikeout"strikeout: boolean superscriptSubscriptStyle
Section titled "superscriptSubscriptStyle"superscriptSubscriptStyle: FontSuperscriptSubscriptStyle underlineStyle
Section titled "underlineStyle"underlineStyle: FontUnderlineStyle Accessors
Section titled "Accessors"length
Section titled "length"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
startIndex
Section titled "startIndex"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
Methods
Section titled "Methods"setFontFormatting
Section titled "setFontFormatting"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.