Removes everything the shape states, leaving it to its theme style.
Optionaloptions: ITransaction.OperationOptionsThe line, resolved. A shape that states none draws its theme style's; a line the shape states without a color takes the theme style's color, as in Excel.
Whether the shape states nothing of its own: it draws with its theme style alone.
Sets the fill: a color, a fill, or fill properties; null clears it.
Optionaloptions: ITransaction.OperationOptionsMakes the fill a gradient and returns it.
Optionaloptions: ITransaction.OperationOptionsRemoves the fill and returns it.
Optionaloptions: ITransaction.OperationOptionsMakes the fill a pattern and returns it.
Optionaloptions: ITransaction.OperationOptionsMakes the fill solid and returns it.
Optionaloptions: ITransaction.OperationOptionsSets the line: a color, a stroke, or stroke properties; null for the theme style's.
Optionaloptions: ITransaction.OperationOptionsRemoves the line and returns it: the shape states that it has none.
Optionaloptions: ITransaction.OperationOptionsWhat the shape states itself, never the resolved values; null when it states nothing.
Sets fill and line at once, as one undoable step.
Optionaloptions: ITransaction.OperationOptions
What a shape draws with: its fill and its line.
Remarks
A shape's style reads resolved: what the shape states itself, over what its theme style gives it (the references into the theme's format scheme that a file's
styleelement names), over SheetXL's defaults for a shape that states neither. A member of a group that takes its group's fill reads the nearest enclosing group's.Writes state values on the shape:
setFill('red')makes the fill the shape's own, andsetFill(null)hands it back to the theme style. toJSON answers only what the shape states, never the resolved values; isThemed says whether it states anything at all. A partial fill update merges into the resolved fill, so a color on a themed shape gives a solid fill of that color;setFillNone()states that the shape has no fill, which is not the same as leaving it to the theme style.Every write is one undoable step, transactional like the rest of the shape.
Example