Sign in Join
FPDoc Onlineexperiment

TCustomGrid.SelectedRange property

Member of TCustomGridpublicIn unit Grids

Provides indexed access to TGridRect values in the currently selected range.

Declaration

pascal
property SelectedRange[AIndex: Integer]: TGridRect read GetSelectedRange;

Description

SelectedRange is a read-only indexed TGridRect property used to get the cell rectangles in Selections for the grid control. SelectedRange is applicable when multi-select range mode has been enabled in the RangeSelectMode property. Otherwise, the current cell selection at Col and Row is returned as the selected range value.

Use SelectedRangeCount to get the number TGridRect instances in SelectedRange.

Use AddSelectedRange to add the current cell selection to the multi-select range in Selections.

Use ClearSelections to remove the cell rectangles stored in Selections.

See also

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