FMX.Objects.TText.FontChanged
Delphi
procedure FontChanged; virtual;
C++
virtual void __fastcall FontChanged(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | TText |
Description
Computes the size of the TText control, based on the font used, then re-renders it with the new dimensions.
The FontChanged method recalculates the physical dimensions (height and width) of the TText control according to the font used to display the text, and re-renders it with the new dimensions.
FontChanged 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.