SplitTableCellsCommand.execute(rowCount, columnCount, mergeBeforeSplit) Method
Executes the SplitTableCellsCommand command with the specified parameters.
Declaration
execute(
rowCount: number,
columnCount: number,
mergeBeforeSplit: boolean
): boolean
Parameters
Name | Type | Description |
---|---|---|
rowCount | number | An integer value specifying a number of rows in the split table cells. |
columnCount | number | An integer value specifying a number of columns in the split table cells. |
mergeBeforeSplit | boolean | true to merge the selected cells before the splitting; otherwise, false. |
Returns
Type | Description |
---|---|
boolean | true if the command has been successfully executed; false if the command execution has failed. |
Remarks
Usage example:
richEdit.commands.splitTableCells.execute(5, 3, true);
The command split table cells only if the selection contains only a target range forming a rectangle without any unselected table cells.
If the selected range includes more than one table row, the command ignores the value of the rowCount parameter and split the selected table cells only into columns.
See Also