FMX.Layouts.TGridPanelLayout.ExpandStyle
Delphi
property ExpandStyle: TExpandStyle read FExpandStyle write FExpandStyle default TExpandStyle.AddRows;
C++
__property TExpandStyle ExpandStyle = {read=FExpandStyle, write=FExpandStyle, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Layouts.pas FMX.Layouts.hpp |
FMX.Layouts | TGridPanelLayout |
Description
Specifies whether to add a row or column to a filled grid panel layout to accommodate additional controls.
The meanings of the options are:
Value | Meaning |
---|---|
|
TGridPanelLayout is expanded vertically -- only rows are added. |
|
TGridPanelLayout is expanded horizontally -- only columns are added. |
|
TGridPanelLayout has a fixed number of rows and columns given by the Count property of both the ColumnCollection and RowCollection collections. |
The property is used when a new control is added to the ControlCollection using
AddControl with the AColumn
and ARow
parameters set to -1. For example:
GridPanelLayout1.ControlCollection.AddControl(AControl,-1,-1);
where AControl
is the control to add to the GridPanelLayout1 grid panel layout.