FMX.Grid.TCustomGrid.CellRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CellRect(const ACol, ARow: Integer): TRect; overload;

C++

System::Types::TRect __fastcall CellRect(const int ACol, const int ARow)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Grid.pas
FMX.Grid.hpp
FMX.Grid TCustomGrid

Description

Returns the coordinates of the cell at the specified row and column.

ACol and ARow are 0-based. You can specify values equal to ColumnCount or RowCount to get the coordinates of an non-existent cell that is next to an existing cell.

If the specified column or row numbers are not valid, CellRect returns coordinates (-1, -1, -1, -1).

See Also