Skip to main content
A newer version of this page is available. .

InsertTableCommand.execute(columnCount, rowCount) Method

Executes the InsertTableCommand command by applying the specified settings.

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(
    columnCount: number,
    rowCount: number
): boolean

Parameters

Name Type Description
columnCount number

An integer value specifying a number of columns in a generated table.

rowCount number

An integer value specifying a number of rows in a generated 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.insertTable.execute(3, 5);
See Also