Back to Devexpress

RichEditCommands.splitTableCells Property

aspnet-js-richeditcommands-d84688c0.md

latest1.5 KB
Original Source

RichEditCommands.splitTableCells Property

Gets a command to split the selected table cells.

Declaration

ts
get splitTableCells(): SplitTableCellsCommand

Property Value

TypeDescription
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.

javascript
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

RichEditCommands Class

RichEditCommands Members