Show: Delphi
C++
Display Preferences
FMX.Layouts.TGridLayout
From XE3 API Documentation
Delphi
TGridLayout = class(TControl)
C++
class PASCALIMPLEMENTATION TGridLayout : public Fmx::Types::TControl
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| class | public | FMX.Layouts.pas FMX.Layouts.hpp |
FMX.Layouts | FMX.Layouts |
Description
A control that arranges child controls in a grid of equally sized cells.
The children of a TGridLayout are resized to fit the sizes specified through the ItemHeight and ItemWidth properties. If orientation is set to orHorizontal, the child controls of a TGridLayout are lined one by one until the Width of the layout exceeds, when a new line is added to the grid. If orientation is set to orVertical, the child controls of a TGridLayout are positioned one under another until the Height of the layout exceeds, when a new column is added to the grid.
Note: The Align property of the controls within a TFlowLayout is ignored. The Position, Height, and Width properties for child controls are automatically set, and explicitly changing their values has no effect.
A grid layout is a container for graphical objects that can arrange the objects it contains in a grid, as shown in the following image.
