API:Vcl.Grids.TCustomDrawGrid.CellRect
Delphi
function CellRect(ACol, ARow: Longint): TRect;
C++
HIDESBASE System::Types::TRect __fastcall CellRect(int ACol, int ARow);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomDrawGrid |
Description
Returns the screen coordinates of a cell in the grid.
Vcl.Grids.TCustomDrawGrid.CellRect inherits from Vcl.Grids.TCustomGrid.CellRect. All content below this line refers to Vcl.Grids.TCustomGrid.CellRect.
Returns the screen coordinates of a cell in the grid.
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.