TRVTableItemInfo.DeleteCols

<< Click to display table of contents >>

TRVTableItemInfo.DeleteCols

Deletes Count columns starting from the Index-th column.

procedure DeleteCols(Index, Count: Integer; DecreaseWidth: Boolean;

  EditCellAfter: Boolean = True);

Parameters:

Index index of the first column to delete, in range 0..ColCount-1.

Count number of columns to delete.

If DecreaseWidth = True, BestWidths of cells overlapping the deleted columns (due to cell-merging) will be decreased (recommended).

If EditCellAfter = True, and this table is inserted in an editor, the edited cell remains edited after this operation; or, if no cell was edited, or the edited cell was deleted, an appropriate cell in the next column becomes edited. If EditCellAfter = False, no cell is edited after this operation.

 

See also:

Table operations;

Undo note.

See also methods:

DeleteSelectedCols;

DeleteRows;

DeleteEmptyCols.