RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDrawGrid.CellRect Method

Returns the screen coordinates of a cell in the grid.

Pascal
function CellRect(ACol: Longint; ARow: Longint): TRect;
C++
__fastcall TRect CellRect(Longint ACol, Longint ARow);

Call CellRect to obtain the boundaries, in pixels, of the cell in the column and row indicated by the ACol and ARow parameters. The top left cell is specified when ACol and ARow are set to zero. 

If the indicated cell is not visible, CellRect returns an empty rectangle. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!