FMX.StdCtrls.TLabel.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.StdCtrls.pas FMX.StdCtrls.hpp |
FMX.StdCtrls | TLabel |
Description
Determines whether the size of this TLabel control automatically grows or shrinks to accommodate the text.
Use the AutoSize property to make the TLabel control adjust its size automatically so the client area accommodates the height and width of the text. When AutoSize is False, the TLabel control is fixed in size. When AutoSize is True, the size of the TLabel control readjusts whenever the text changes.
Setting AutoSize to True automatically sets WordWrap to False.