Skip to main content

TcxCustomGridCardRowLayoutObject.GetCoordinates(TcxGridCardViewRow) Method

Returns a card row’s location in a card – in row-and-column coordinates.

Declaration

function GetCoordinates(ARow: TcxGridCardViewRow): TcxGridCardRowCoordinates; overload;

Parameters

Name Type
ARow TcxGridCardViewRow

Returns

Type
TcxGridCardRowCoordinates

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 card row’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 GetCoordinates method calculates the item’s location in row-and-column coordinates.

The first overload accepts the TcxGridCardRowPosition record containing information on the item’s position in layer-and-item coordinates and converts it into row-and-column coordinates.

The second calculates row-and-column coordinates of the passed ARow item.

See Also