FMX.Types.TTextAlign
From RAD Studio API Documentation
Delphi
TTextAlign = (taCenter, taLeading, taTrailing);
C++
enum class DECLSPEC_DENUM TTextAlign : unsigned int { taCenter, taLeading, taTrailing };
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 |
|---|---|
|
|
The text is moved to the center of the parent area. |
|
|
The text is moved to the beginning of the parent area. |
|
|
The text is moved to end of the parent area. |