Represents a string with mixed formatting in a cell or cell comment.
Constructors
Section titled "Constructors"FormattedString
new FormattedString(workbook: Workbook, element: StringElement): FormattedString Returns FormattedString
Properties
Section titled "Properties"$t: Type unformattedString
Section titled "unformattedString"unformattedString: string Methods
Section titled "Methods"clone
Section titled "clone"Creates a new [[FormattedString]] that is a copy of this one.
clone(): FormattedString Returns FormattedString
equals
Section titled "equals"Determines whether the specified [[Object]] is equal to this [[FormattedString]].
equals(obj: any): boolean Parameters
- obj:
anyThe value to test for equality to this FormattedString.
Returns boolean
getFont
Section titled "getFont"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:
numberThe index of the first character the returned font controls.
Returns FormattedStringFont
getFormattingRuns
Section titled "getFormattingRuns"getFormattingRuns(): IEnumerable$1<FormattedStringFont> Returns IEnumerable$1<FormattedStringFont>
getHashCode
Section titled "getHashCode"Calculates the has code for this [[FormattedString]].
getHashCode(): number Returns number
toString
Section titled "toString"Returns the [[String]] that represents this [[FormattedString]]. This is just the unformatted string.
toString(): string