Sign in Join
FPDoc Onlineexperiment

TCustomGrid.SelectedRangeCount property

Member of TCustomGridpublicIn unit Grids

Number of cell rectangles in the selected range for the grid.

Declaration

pascal
property SelectedRangeCount: Integer read GetSelectedRangeCount;

Description

SelectedRangeCount is a read-only Integer property with the number of selected cell rectangles currently selected in the cells for the control. The property value contains the length of the internal TGridRectArray maintained in the control + 1 (for the current selected cell not already in the array), or 0 when the grid is empty.

Use SelectedRange to access a selection rectangle by its ordinal position in the internal TGridRectArray instance.

Use AddSelectedRange to add a selection rectangle when RangeSelectMode is set to rsmMulti.

Use ClearSelections to remove all selection rectangles and redraw the grid control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.