rvico TRichView Reference | Item Types | Table

TRVTableItemInfo.Select

Top  Previous  Next

Selects the range of cells in the table

procedure Select(StartRow, StartCol, RowOffs, ColOffs: Integer);

This method selects range (rectangle, if there is no cells-merging) of cells, starting from the cell (StartRow, StartCol). The parameters have the same meaning as in GetSelectionBounds.

Selection includes all cells intersected with imaginary rectangle that fully includes Cells[StartRow, StartCol] and Cells[StartRow+RowOffs, StartCol+ColOffs].

You cannot remove selection with this method, because Select(StartRow, StartCol, 0,0) selects one cell, use Deselect.

This method must be called when the document is formatted.

See also:

Overview of selection in tables

See also methods:

SelectRows, SelectCols;

GetSelectionBounds;

Deselect.


TRichView © trichview.com