FMX.TabControl.TTabItem.TextAlign

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TextAlign: TTextAlign read GetTextAlign write SetTextAlign default 0;

C++

__property TextAlign = {default=0};

Properties

Type Visibility Source Unit Parent
property public
FMX.TabControl.pas
FMX.TabControl.hpp
FMX.TabControl TTabItem

Description

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

FMX.TabControl.TTabItem.TextAlign inherits from FMX.Controls.TTextControl.TextAlign. All content below this line refers to FMX.Controls.TTextControl.TextAlign.

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

The TextAlign property specifies how the TTextControl object will display the text in terms of horizontal alignment. TextAlign can have one of the following values (defined in TTextAlign):

  • Center (default)--aligns the text on a horizontal axis, at the middle of the TTextControl object.
  • Leading--aligns the text on a horizontal axis, at the leftmost position inside the TTextControl object.
  • Trailing--aligns the text on a horizontal axis, at the rightmost position inside the TTextControl object.

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

See Also