ChangeTextBoxResizeShapeToFitTextCommand.execute(resizeShapeToFitText) Method
Executes the ChangeTextBoxResizeShapeToFitTextCommand command with the specified parameter.
Declaration
execute(
resizeShapeToFitText: boolean
): boolean
Parameters
Name | Type | Description |
---|---|---|
resizeShapeToFitText | boolean | true, to resize the shape to fit the text; otherwise, false. |
Returns
Type | Description |
---|---|
boolean | true if the command has been successfully executed; false if the command execution has failed. |
Remarks
Usage example (it is implied that selection is set to a text box object):
rich.commands.changeTextBoxResizeShapeToFitText.execute(true);
See Also