TBoundLabel.Alignment property
Horizontal alignment for the Caption displayed on the bound label.
Declaration
property Alignment:;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 LabelPosition for more information.
Use the Layout property to control the vertical alignment for the Caption text displayed on the label.
Added in LCL version 4.0.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
