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 Inherited from: FormattedFontBase
bold: boolean colorInfo
Section titled "colorInfo"Inherited from: FormattedFontBase
colorInfo: WorkbookColorInfo height
Section titled "height"Inherited from: FormattedFontBase
height: number italic
Section titled "italic"Inherited from: FormattedFontBase
italic: boolean Inherited from: FormattedFontBase
name: string strikeout
Section titled "strikeout"Inherited from: FormattedFontBase
strikeout: boolean superscriptSubscriptStyle
Section titled "superscriptSubscriptStyle"Inherited from: FormattedFontBase
superscriptSubscriptStyle: FontSuperscriptSubscriptStyle underlineStyle
Section titled "underlineStyle"Inherited from: FormattedFontBase
underlineStyle: FontUnderlineStyle Accessors
Section titled "Accessors"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
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
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
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.