FMX.Types.TTextAlign
Delphi
TTextAlign = (Center, Leading, Trailing);
C++
enum class DECLSPEC_DENUM TTextAlign : unsigned int { Center, Leading, Trailing, taCenter _DEPRECATED_ATTRIBUTE3("Use TTextAlign.Center") = 0x0, taLeading _DEPRECATED_ATTRIBUTE3("Use TTextAlign.Leading") = 0x1, taTrailing _DEPRECATED_ATTRIBUTE3("Use TTextAlign.Trailing") = 0x2 };
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 the end of the parent area. |