Vcl.ExtCtrls.TGridPanel.ExpandStyle

From RAD Studio API Documentation

Delphi

property ExpandStyle: TExpandStyle read FExpandStyle write FExpandStyle default 0;

C++

__property ExpandStyle = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TGridPanel

Description

Specifies whether rows or columns are added to a filled grid panel to accommodate additional controls. {{#multireplace:Vcl.ExtCtrls.TGridPanel.ExpandStyle|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.ExtCtrls.TCustomGridPanel.ExpandStyle|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.ExtCtrls.TCustomGridPanel.ExpandStyle|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

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.

See Also