Represents a string with mixed formatting in a cell or cell comment.

FormattedString

new FormattedString(workbook: Workbook, element: StringElement): FormattedString

Returns FormattedString

$t: Type
unformattedString: string

Creates a new [[FormattedString]] that is a copy of this one.

clone(): FormattedString

Returns FormattedString

Determines whether the specified [[Object]] is equal to this [[FormattedString]].

equals(obj: any): boolean

Parameters

  • obj: any

    The value to test for equality to this FormattedString.

Returns boolean

Gets the font which controls the formatting properties in the string from the specified start index to the end of the string.

getFont(startIndex: number): FormattedStringFont

Parameters

  • startIndex: number

    The index of the first character the returned font controls.

Returns FormattedStringFont

getFormattingRuns(): IEnumerable$1<FormattedStringFont>

Returns IEnumerable$1<FormattedStringFont>

Calculates the has code for this [[FormattedString]].

getHashCode(): number

Returns number

Returns the [[String]] that represents this [[FormattedString]]. This is just the unformatted string.

toString(): string

Returns string