Vcl.ExtCtrls.TGridPanel.ExpandStyle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ExpandStyle;

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.

Vcl.ExtCtrls.TGridPanel.ExpandStyle inherits from Vcl.ExtCtrls.TCustomGridPanel.ExpandStyle. All content below this line refers to Vcl.ExtCtrls.TCustomGridPanel.ExpandStyle.

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