ReadonlyisFor type checking.
ReadonlyisFor type checking.
Removes everything the box states, its font too.
Optionaloptions: ITransaction.OperationOptionsReturns the font of the box's text.
The 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 box states itself, never the resolved values; null when it states nothing.
Sets fill, line and font at once, as one undoable step.
Optionaloptions: ITransaction.OperationOptions
What a text box draws with: its fill, its line and the font of its text.
Remarks
A chart's title, legend, axes, data labels and data table are text boxes: one
getStyle()answers how each looks, asrange.getStyle()does for a cell. A part with no text, such as a series or the plot area, answers an IShapeStyle;isITextBoxStyletells them apart.The font reads what is drawn, stated or not; what the box does not state it takes from the text around it. toJSON answers only what the box states.
Example