FMX.StdCtrls.TPresentedTextControl.CalcTextObjectSize
Delphi
function CalcTextObjectSize(const MaxWidth: Single; var Size: TSizeF): Boolean;
C++
bool __fastcall CalcTextObjectSize(const float MaxWidth, System::Types::TSizeF &Size);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.StdCtrls.pas FMX.StdCtrls.hpp |
FMX.StdCtrls | TPresentedTextControl |
Description
Sets the bounds of the TextObject according to the current alignment values of that TextObject.
The parameters serve as variables where CalcTextObjectSize puts the calculated bounds:
MaxWidth
: The maximum width of the text object.Size
: The actual width and height of the text object.