Sign in Join
FPDoc Onlineexperiment

TBoundLabel.Layout property

Member of TBoundLabelpublishedIn unit ExtCtrls

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

Declaration

pascal
property Layout: 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 LabelPosition for more information.

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.