Vcl.StdCtrls.TCustomLabel.Alignment

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Alignment: TAlignment read FAlignment write SetAlignment  default taLeftJustify;

C++

__property System::Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomLabel

Description

Controls the horizontal placement of the text within the label.

Set Alignment to specify how the text of the label is justified within the ClientRect of the label control.

The effect of the Alignment property is more obvious if the WordWrap property is true and the label includes more than one line of text.

See Also