FMX.Objects.TText.AdjustSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AdjustSize;

C++

void __fastcall AdjustSize();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects TText

Description

Computes the new size of the TText control and re-renders it with the new dimensions.

The AdjustSize method recalculates the physical dimensions (height and width) of the TText control according to the text it displays, and re-renders it with the new dimensions.

AdjustSize is used internally for auto-sizing purposes. For more information on how to make TText auto-resize according to its display text, refer to the AutoSize API help topic.

See Also