FMX.Objects.TText.AutoSize
Delphi
property AutoSize: Boolean read FAutoSize write SetAutoSize default False;
C++
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | TText |
Description
Specifies whether TText control is auto-sized based on the length of the text.
Set the AutoSize property to True to automatically resize the TText control according to the length of the Text.
Set the AutoSize property to False to lock autoresize of the TText control.
- When both AutoSize and WordWrap are set to True, the height of the TText control increases to show the full text, while the width does not change.
- When AutoSize is set to True and WordWrap is False the width of the TText control changes to display the text in one line, while the height does not change.