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

TCustomGrid.GetIsCellSelected

Gets the value for the indexed IsCellSelected property.

Declaration

Source position: grids.pas line 1141

protected function TCustomGrid.GetIsCellSelected(

  aCol: Integer;

  aRow: Integer

):Boolean; virtual;

Arguments

aCol

  

Column number for the cell examined in the method.

aRow

  

Row number for the cell examined in the method.

Function result

Boolean value for the indexed property.

Description

Compares the cell coordinates in ACol and ARow to the current range selection(s) in the grid control. The return value is True if the cell is in the current range selection for the control.

If RangeSelectMode is set to rsmMulti, all of the existing range selections are examined for the specified cell. The return is True when the cell is located in the array of rectangles used for multi-selections in the grid control.

Otherwise, the return value is set to False.

See also

TCustomGrid.IsCellSelected

  

Provides indexed access to the selected state for a cell by its column and row number.


Version 4.0 Generated 2025-05-03 Home