Sign in Join
FPDoc Onlineexperiment

TCustomGrid.GetIsCellSelected function

Member of TCustomGridprotectedIn unit Grids

Gets the value for the indexed IsCellSelected property.

Declaration

pascal
function 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

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