Controls the formatting of a range of characters in a [[formattedString]].

FormattedStringFont

new FormattedStringFont(a: FormattedString, b: number, c: number): FormattedStringFont

Returns FormattedStringFont

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

Inherited from: FormattedFontBase

Gets or sets the fore color of the font.

get colorInfo(): WorkbookColorInfo

Returns WorkbookColorInfo

set colorInfo(a: WorkbookColorInfo): void

Parameters

Returns void

Gets the formatted string which is controlled by this font. The formatted string which is controlled by this font.

get formattedString(): FormattedString

Returns FormattedString

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

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

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

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

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

Inherited from: FormattedFontBase

Gets or sets the value indicating whether the font is superscript or subscript.

get superscriptSubscriptStyle(): FontSuperscriptSubscriptStyle

Returns FontSuperscriptSubscriptStyle

set superscriptSubscriptStyle(a: FontSuperscriptSubscriptStyle): void

Parameters

Returns void

Inherited from: FormattedFontBase

Gets or sets the underline style of the font.

get underlineStyle(): FontUnderlineStyle

Returns FontUnderlineStyle

set underlineStyle(a: FontUnderlineStyle): void

Parameters

Returns void

Inherited from: FormattedFontBase

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