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

# TControlChildSizing.LeftRightSpacing

Minimum distance between the left or right edge for the Control and the left or right edge for a child control.

## Declaration

Source position: controls.pp line 1988

`published property TControlChildSizing.LeftRightSpacing : Integer read FLeftRightSpacing write SetLeftRightSpacing default 0;`

## Description

LeftRightSpacing is an Integer property used to specify the number of pixels reserved at the left and right edges of the Control where the class instance is used. For example: When LeftRightSpacing is set to 5 for the Control, the Left property for a child control cannot be smaller than 5.

LeftRightSpacing (and the other spacing properties) are used when Layout contains a value other than cclNone.

Use TopBottomSpacing to reserve space on the corresponding edges for the Control.

Use HorizontalSpacing and VerticalSpacing to specify the space between child controls when a grid Layout is used.

## See also

TControlChildSizing.TopBottomSpacing |  | Minimum distance between the top or bottom edge of a Control and the top or bottom edge for a child control.
TControlChildSizing.HorizontalSpacing |  | Minimum space between child controls which are horizontally adjacent.
TControlChildSizing.VerticalSpacing |  | Minimum space between child controls which are vertically adjacent.
TControlChildSizing.Layout |  | Indicates the layout direction used when child controls are resized and arranged into rows and / or columns.