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

TBoundLabel.Alignment

Horizontal alignment for the Caption displayed on the bound label.

Declaration

Source position: extctrls.pp line 980

published property TBoundLabel.Alignment : TAlignment;

Description

Alignment is a published TAlignment property in TBoundLabel which controls how Caption text is aligned horizontally on the label.

The default value for Alignment is taCenter as assigned in the Create constructor. Please note that this is different than the default property value (taLeftJustify) used in the TCustomLabel ancestor.

See TAlignment 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 above or below the FocusControl. The property value is not used when the bound label is positioned to the left or right of the FocusControl; the label width is auto-sized in this use case. See TCustomLabeledEdit.LabelPosition for more information.

Use the Layout property to control the vertical alignment for the Caption text displayed on the label.

Version info

Added in LCL version 4.0.

See also

TBoundLabel.Caption

  

The text displayed for the control.

TBoundLabel.Layout

  

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

TBoundLabel.FocusControl

  

Control focused when the accelerator key for the label is detected.

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.Alignment

  

Horizontal text justification in the control (centered, left- or right-justified).

TAlignment


Version 4.0 Generated 2025-05-03 Home