TcxCustomGridCardRowLayoutObject.GetPosition(TcxGridCardViewRow) Method
Returns an item’s location in a card – in layer-and-item coordinates.
Declaration
function GetPosition(ARow: TcxGridCardViewRow): TcxGridCardRowPosition; overload;
Parameters
Name | Type | Description |
---|---|---|
ARow | TcxGridCardViewRow | The target Card View row. |
Returns
Type | Description |
---|---|
TcxGridCardRowPosition | The position of the target Card View row in its layer. |
Remarks
The card row’s location in a card can be determined in one of two ways:
Layer-and-item – the index position of a layer in the card and the item’s position in a layer (returned by the TcxGridCardRowPosition record).
Row-and-column – the absolute position in row-and-column coordinates (returned by the TcxGridCardRowCoordinates record).
The GetPosition
function calculates the item’s location in layer-and-item coordinates.
The first overload converts row-and-column coordinates into layer-and-item coordinates.
The second uses the item’s index in the corresponding layer as coordinates.
The third overload calculates the location of the ARow item passed in layer-and-item coordinates.