[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.SelectedRangeCount

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

Declaration

Source position: grids.pas line 1378

public property TCustomGrid.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).

Use SelectedRange to access the selection rectangles by the ordinal position in the internal TGridRectArray instance.

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

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

See also

TCustomGrid.SelectedRange

  

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

TCustomGrid.RangeSelectMode

  

Controls the range selection mode used for the grid.

TCustomGrid.AddSelectedRange

  

Adds the current range selection to the array of selection rectangles for the control.

TCustomGrid.ClearSelections

  

Clears the current range selection(s) and redraws the grid control.

TRangeSelectMode

  

Enumerated type with the Range selection mode used in a grid control.

TGridRectArray

  

Array type used to store TGridRect instances.


Version 4.0 Generated 2025-05-03 Home