Vcl.ExtCtrls.TCustomGridPanel.ExpandStyle
Delphi
property ExpandStyle: TExpandStyle read FExpandStyle write FExpandStyle default emAddRows;
C++
__property TExpandStyle ExpandStyle = {read=FExpandStyle, write=FExpandStyle, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TCustomGridPanel |
Description
Specifies whether rows or columns are added to a filled grid panel to accommodate additional controls.
Use the ExpandStyle property to specify how a grid panel is expanded when each cell of the grid contains a control, and a new control is added. The property can take 3 values, which are described in the following table:
Value | Meaning |
---|---|
emAddRows |
The GridPanel is expanded vertically -- only rows are added. |
emAddColumns |
The GridPanel is expanded horizontally -- only columns are added. |
emFixedSize |
The GridPanel has a fixed number of rows and columns given by the Count property of both 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:
GridPanel1.ControlCollection.GridAddControl(control,-1,-1);
where control
is the control added to the GridPanel1 TGridPanel.