FMX.Types.TTextAlign

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TTextAlign = (Center, Leading, Trailing);

C++

enum class DECLSPEC_DENUM TTextAlign : unsigned int { Center, Leading, Trailing };

Properties

Type Visibility Source Unit Parent
enum public
FMX.Types.pas
FMX.Types.hpp
FMX.Types FMX.Types

Description

Specifies the text alignment of a control within its parent.

To set the text alignment of a control, set the TextAlign property for the horizontal axis and the VertTextAlign property for the vertical axis.

TTextAlign can have the following values:

Value Meaning

Center

The text is moved to the center of the parent area.

Leading

The text is moved to the beginning of the parent area.

Trailing

The text is moved to the end of the parent area.

See Also