Add Listeners.
Optionaloptions: IListener.OptionsStart persisting styles.
Clears the mru color list
Returns the customized Indexed colors.
Returns the document's own named styles, customized built-ins included.
Use getNamedStyles().getItems({ type: 'custom' }); removed in the next
release.
Returns the document's own table styles, customized built-ins included.
Use getTableStyles().getItems({ type: 'custom' }); removed in the next
release.
Themes do not contain font sizes but it is possible to set a default font size at the document or application level.
Returns the style a table is given when it is created without one.
Use getTableStyles().getDefault(); removed in the next release.
Returns an array of colors that will be used to resolve any colors that use IndexXX or ColorXX as a key.
Returns the named style with the given name, or null if there is none.
Use getNamedStyles().getByName(name); removed in the next release.
Returns the named cell styles.
Return a the Normal styles as an IStyle.;
Convenience mechanism (and slightly faster) way to call getNamed('Normal').getRanged();
Returns the table style with the given name, or null if there is none; with no name, the
style of a table that has none.
Optionalname: stringUse getTableStyles().getByName(name) (or .getNone()); removed in the
next release.
Returns the table styles, and the default for a new table.
Returns the current theme
This is available for functions that want to resolve colors using the index color palette.
Returns a list of colors that were added via addRecentColor.
Flattens a style against the named style it references, resolving shorthand values as it goes.
A valid IStyle.Properties with the referenced style's values merged in.
The inverse of IStyleCollection.normalize: where normalize reduces a style to what it
authors over its named style, this restores what that authorship actually resolves to. Formats
that store a style as a self-contained record rather than as a delta (OOXML xf) need this on
the way out.
This is available for functions that want to resolve colors for the theme used specifically for this style.
Override the default indexed colors.
An array of colors.
Adds or updates a table style.
Use getTableStyles().set(name, properties); removed in the next release.
Set the default fontSize. Note - A theme does NOT contain this.
The new default font size.
Sets the style a table is given when it is created without one.
Use getTableStyles().setDefault(name); removed in the next release.
Adds or updates a named style.
OptionalmergeIfExists: booleanUse getNamedStyles().set(update, mergeIfExists); removed in the next
release.
Checks the current name to see if this is a valid sheetName.
OptionalcheckDuplicates: boolean
The workbook's styling: its named cell styles and table styles (each a collection of its own), the theme and default font size the styles resolve against, color resolution, and the style algebra (
normalize/resolve) with persistence.