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

# TCustomLabel.Layout

Vertical alignment for control text (at the top, bottom, or center).

## Declaration

Source position: stdctrls.pp line 1599

`protected property TCustomLabel.Layout : TTextLayout read FLayout write SetLayout default tlTop;`

## Description

Layout is a TTextLayout property with the vertical alignment used for the text displayed in the control. The default value for the property is tlTop. Changing the value in Layout causes the Invalidate method to be called to redraw the control.

Use the Alignment property to control the horizontal alignment for the text in the control.

Use OptimalFill to indicate if the font height can be adjusted to fill the client area for the control.

## See also

TCustomLabel.Alignment |  | Horizontal text justification in the control (centered, left- or right-justified).
TCustomLabel.OptimalFill |  | If True, the font size is adjusted for optimal fill of the available space.
TTextLayout |  | Represents the text layout used to render text in its rectangle.
TControl.Invalidate |  | Causes a delayed Repaint of the control by marking its visible area of the control as invalid.