FMX.Layouts.TGridPanelLayout.TControlItem.ColumnSpan
Delphi
property ColumnSpan: TCellSpan read FColumnSpan write SetColumnSpan default 1;
C++
__property TGridPanelLayout::TCellSpan ColumnSpan = {read=FColumnSpan, write=SetColumnSpan, default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Layouts.pas FMX.Layouts.hpp |
FMX.Layouts | TControlItem |
Description
Specifies the maximum number of cells that the control item in the respective column can span on.
The Row, Column, and ColumnSpan are properties of a TControlItem control item. The value of ColumnSpan specifies the maximum number of cells in the Column column that can be occupied by the TControlItem control item located by the Row and Column properties.
To specify that a control item, which has the Row and Column location in the grid panel layout, can span on several cells in the Column column, you can use the following trick:
- In the Structure view, locate the desired
TGridPanelLayout
layout node. - Under this node, locate the
Control Collection
node. - Among control items in this
Control Collection
, select the control item associated with the desired control. The Object Inspector shows the properties of this control item. - In the ColumnSpan property, type the number of cells that the control item can span on in the column (specified by the Column property).
- The control item having the Row and Column location will span on the specified number of cells in the Column column.
- In the Structure view, locate the desired
Use RowSpan to set the maximum number of cells a control item to span on in a row.