Vcl.StdCtrls.TCustomEdit.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 public
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomEdit

Description

Determines how the text is aligned within the text edit control.

Use Alignment to change the way the text is formatted in the text edit control. Alignment can take one of the following values:



Value Meaning

taLeftJustify

Align text to the left side of the control

taCenter

Center text horizontally in the control.

taRightJustify

Align text to the right side of the control.



See Also


Code Examples