FMX.ExtCtrls.TDropTarget.TextAlign
Delphi
property TextAlign: TTextAlign read GetTextAlign write SetTextAlign default 1;
C++
__property TextAlign = {default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.ExtCtrls.pas FMX.ExtCtrls.hpp |
FMX.ExtCtrls | TDropTarget |
Description
Specifies how the text will be displayed in terms of horizontal alignment.
FMX.ExtCtrls.TDropTarget.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.