Show: Object Pascal C++
Display Preferences

FMX.Edit.TCustomEdit.TextAlign

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property TextAlign: TTextAlign read GetTextAlign write SetTextAlign default TTextAlign.Leading;

C++

__property Fmx::Types::TTextAlign TextAlign = {read=GetTextAlign, write=SetTextAlign, default=1};

Properties

Type Visibility Source Unit Parent
property public
FMX.Edit.pas
FMX.Edit.hpp
FMX.Edit TCustomEdit

Description

Specifies how the text will be displayed in terms of horizontal alignment.

The TextAlign property specifies how this edit control displays the text in terms of horizontal alignment. TextAlign can have one of the following, defined in TTextAlign, values:

  • Center (default) aligns the text at the middle of the edit control.
  • Leading aligns the text at the leftmost position inside the edit control.
  • Trailing aligns the text at the rightmost position inside the edit control.

When you use text representation properties stored in ITextSettings.TextSettings, remember that TextAlign corresponds to HorzAlign.

See Also

Personal tools
Translations