TRVTableItemInfo.SplitSelectedCellsVertically

<< Click to display table of contents >>

TRVTableItemInfo.SplitSelectedCellsVertically

Splits each selected cell into ColCount cells (inserting vertical splitters).

procedure SplitSelectedCellsVertically(ColCount: Integer);

This method splits cells calling UnmergeCells, InsertCols and MergeCells. This method can change number of columns.

It's recommended to call this method only when selection has a rectangular shape, see CanMergeSelectedCells.

If no cells are selected, it splits the cell that is being edited.

This method must be called when the document is formatted.

See also:

Table operations;

Undo note.

See also methods:

SplitSelectedCellsVertically;

UnmergeSelectedCells;

GetNormalizedSelectionBounds.