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

# TBoundLabel.Layout

Specifies the vertical alignment for the Caption text on the label.

## Declaration

Source position: extctrls.pp line 999

`published property TBoundLabel.Layout : TTextLayout default tlCenter;`

## Description

Layout is a published TTextLayout property in TBoundLabel. The default value for the property is tlCenter in TBoundLabel, and causes the Caption to be centered vertically using the Height for the label. Please note that the default value differs from the default used in the TCustomLabel ancestor (tlTop).

See TTextLayout for the values allowed in the property and their meanings.

The property value is used when it is relevant to the position for the bound label relative to its FocusControl. In short, when the bound label appears to the left or right of the FocusControl. The property value is not used when the bound label is positioned above or below the FocusControl; the label height is auto-sized in this use case. See TCustomLabeledEdit.LabelPosition for more information.

Use Alignment to control the horizontal alignment used for the Caption text.

## See also

TBoundLabel.Alignment |  | Horizontal alignment for the Caption displayed on the bound label.
TBoundLabel.Caption |  | The text displayed for the control.
TCustomLabeledEdit.LabelPosition |  | Edge on the edge control where the bound label is aligned.
TCustomLabeledEdit.LabelSpacing |  | Number of pixels between the control and its bound label.
TCustomLabel.Layout |  | Vertical alignment for control text (at the top, bottom, or center).