ChangeTableStyleCommand.execute(style) Method
Executes the ChangeTableStyleCommand command by applying the specified setting.
May result in taking no action if the command’s state does not allow command execution. Use the object’s getState method to check the command state.
Declaration
execute(
style: TableStyle | string
): boolean
Parameters
Name | Type | Description |
---|---|---|
style | TableStyle | string | A TableStyle object specifying the style applying to the table. |
Returns
Type | Description |
---|---|
boolean | A Boolean value identifying whether method execution was successful or failed. |
Remarks
The execute method checks the command state (obtained using the getState method) before executing, and decides whether the action can be performed.
Usage example:
richEdit.commands.changeTableStyle.execute(richEdit.document.tableStylesInfo[1]);
Table style settings are available via the RichEditDocument.tableStylesInfo property.
See Also