FMX.StdCtrls.TLabel.AutoSize

From RAD Studio API Documentation
Jump to: navigation, search

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

Specifies whether TLabel control is auto-sized based on the length of the text.

Set the AutoSize property to True to automatically resize the TLabel control according to the length of the Text.
Set the AutoSize property to False to lock autoresize of the TLabel control.

Tip: The size of the TLabel control readjusts when the Font property changes.
  • When both AutoSize and WordWrap are set to True, the label's width does not change, and the height increases to show the full Text. So, the text might occupy several lines.
  • When AutoSize is set to True and WordWrap is set to False, the label's width changes to display the text in one line, while the height does not change.

See Also