TcxCustomGridCardRowLayoutObject Class
The base class for classes that implement different types of card layouts.
Declaration
TcxCustomGridCardRowLayoutObject = class(
TObject
)
Remarks
A Card View provides an advanced item arrangement in a card. Items can be organized in a column or row orientation (see the View’s RowLayout property) within a card. When in a vertical orientation, items go down a column.
In horizontal row orientation, items are organized from left to right across a row.
Additionally, a card can be split into a required number of columns or rows. In this context, a common term for columns and rows is “layers“. The developer must specify how many items are to be located in a particular layer (see the item’s Position.BeginsLayer property).
The TcxCustomGridCardRowLayoutObject class implements common logic that provides details on split layouts:
Card layout type (items are organized either in vertical or horizontal orientation);
If a card is split into layers, the total number of layers in a card, and the number of items in a particular layer (see the LayerCount and LayerRowCount);
A particular item’s location in a card. The item’s location is defined by two types of coordinates. With the first, the item’s location is determined as the sequential ordering of layers in a card and the sequential ordering of items in a particular layer (see the GetPosition method). The second assumes that splitting a card into layers makes up a matrix of items. As such, the item’s location is identified through the row-and-column dimension (see the GetCoordinates method);
A random access to the collection of items in a layer (see the LayerRows property).