A style that has a fill: a cell's background, or what a shape or chart part is filled with.
Code that formats a fill takes an IFillable, so the same code fills a cell, a shape or a chart title.
IFillable
const highlight = (style: IFillable) => style.setFill('#ffd966');highlight(range.getStyle());highlight(chart.getTitle().getStyle()); Copy
const highlight = (style: IFillable) => style.setFill('#ffd966');highlight(range.getStyle());highlight(chart.getTitle().getStyle());
The style the setters return, to keep chaining on.
The fills the style can hold.
The options its writes take.
Returns the fill, resolved.
Sets the fill: a color, a fill, or fill properties; null clears it.
null
Optional
Makes the fill a gradient and returns it.
Removes the fill and returns it.
Makes the fill a pattern and returns it.
Makes the fill solid and returns it.
A style that has a fill: a cell's background, or what a shape or chart part is filled with.
Remarks
Code that formats a fill takes an
IFillable, so the same code fills a cell, a shape or a chart title.Example