ChangeTableStyleCommand.execute(style) Method

Executes the ChangeTableStyleCommand command with the specified parameter.

Declaration

execute(
    style: string | TableStyle
): boolean

Parameters

Name Type Description
style string | TableStyle

A TableStyle object specifying the style applying to the table.

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

Usage example:

richEdit.commands.changeTableStyle.execute(richEdit.document.tableStylesInfo[1]);

Table style settings are available via the RichEditDocument.tableStylesInfo property.

See Also