Creates a simple text frame that can be used for rendering and/or measuring.
OptionalallowWrap: boolean
If true then will try to wrap on natural breaks.
Returns the alignment for the style.
Returns the best fit size assuming no content.
Returns the borders.
Returns the font for the style.
Returns insets used for content. This does not taking into account indent because this is alignment and type specific.
Format used for Number formatting:
Returns the protection format: whether the cell stays editable, and whether it shows its formula, while its sheet is protected.
A boolean value indicating whether the text string in a cell should be prefixed by a single quote mark (e.g., 'text). In these cases, the quote is not stored in the Shared Strings Part.
This is used to determine if the style has rendering artifacts even if there is no content. (For example borders or background)
Returns true if the CellStyle is the normal style
Measure the text using the styling properties
The text to measure.
Optionalsize: number
Size
Optionalfamily: string
Family
Optionaloptions: MetricOptions
Options for the measurement.
Sets the alignment style.
This method allows updating alignments using an ITextFrame.IAlignment.Update or a shorthand property object.
The alignment object or a shorthand property object to apply. Pass null to clear.
Optionaloptions: UpdateOptions
Optional configuration for the update.
The ITextFrame.IAlignment object for further modifications.
Sets the borders.
This method allows updating borders using an IBorders or a shorthand property object.
The borders object or a shorthand property object to apply. Pass null to clear.
Optionaloptions: UpdateOptions
Optional configuration for the update.
The IBorders object for further modifications.
Sets the fill style.
This method allows updating fill using an IFill or a shorthand property object.
The fill object or a shorthand property object to apply. Pass null to clear.
Optionaloptions: UpdateOptions
Optional configuration for the update.
The IFill object for further modifications.
Sets the font style.
This method allows updating fill using an IStyledFont or a shorthand property object.
The font object or a shorthand property object to apply. Pass null to clear.
Optionaloptions: UpdateOptions
Optional configuration for the update.
The IStyledFont object for further modifications.
Sets the named style that this is derived from.
The named style to set.
Optionaloptions: UpdateOptionsOptionaloptions: UpdateOptionsSets the protection format.
The protection or a partial property object to apply. Pass null to clear.
Optionaloptions: UpdateOptions
Optional configuration for the update.
Optionaloptions: UpdateOptionsUpdate many style properties at once.
The style updates.
Optionaloptions: UpdateOptions
Additional options for the update.
The IStyle for further modifications.
The
IStyleinterface combines user-applied styles with dynamic styles, such as those from tables or conditional formatting, to deliver the current appearance.