[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TControlChildSizing.Layout

Indicates the layout direction used when child controls are resized and arranged into rows and / or columns.

## Declaration

Source position: controls.pp line 2000

`published property TControlChildSizing.Layout : TControlChildrenLayout read FLayout write SetLayout default cclNone;`

## Description

Layout is a TControlChildrenLayout property which indicates the layout behavior for adjacent controls in the parent Control. Layout is used when methods in TControl descendants need to arrange their child controls into columns or rows.

The default value for the property is cclNone, and indicates that a layout direction has not been specified. This causes the design-time positioning in the Anchors, Align, and BorderSpacing properties for the child controls to be used.

Use cclLeftToRightThenTopToBottom or cclTopToBottomThenLeftToRight to layout child controls in column / row order using the BiDiMode settings for the Control. These values also enable use of the spacing and alignment settings in the class including: ControlsPerLine, HorizontalSpacing, VerticalSpacing, TopBottomSpacing, LeftRightSpacing, EnlargeHorizontal, and EnlargeVertical.

Changing the value for the property causes the Change method to be called to resize / realign child controls and to signal the OnChange event handler (when assigned).

Layout is used in TControl methods like WidthIsAnchored and HeightIsAnchored, and in the AlignControls method in TWinControl.

## See also

TControlChildSizing.Change |  | Notifies the Control of the child sizing changes and signals the OnChange event handler.
TControlChildSizing.Control |  | The Control where the class instance is used.
TControlChildSizing.OnChange |  | Event handler signalled when the size or layout for child controls has been changed.
TControlChildrenLayout |  | Defines the logic used to arrange child controls.
TWinControl.AlignControls |  | Repositions and resizes the control and child controls.
TControl.HeightIsAnchored |  | True when both the control's top and bottom side are anchored.
TControl.WidthIsAnchored |  | True when both the control's left and right side are anchored.
TControl.Align |  | Specifies the placement of the control on its Parent control.
TControl.Anchors |  | The set of anchor definitions for this control.
TControl.BorderSpacing |  | Determines the inner and outer border spacing for this control.