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

RichEditCommands.splitTableCells Property

Gets a command to split the selected table cells.

Declaration

readonly splitTableCells: SplitTableCellsCommand

Property Value

Type Description
SplitTableCellsCommand

An object that provides methods that execute the command and check its state.

Remarks

Call the execute(rowCount, columnCount, mergeBeforeSplit) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

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 splits the selected table cells into columns only.

Refer to the following section for more information: Client Commands.

See Also