TTMSFNCRichEditor.CalcHeight Method
Calculates the height required to render the content within a given width.
API unit family: TMSFNCRichEditor
Declaring type: TTMSFNCRichEditor
Syntax
function CalcHeight(ACanvas: TCanvas; ARect: TRect): integer;
int __fastcall CalcHeight(Fmx::Graphics::TCanvas* ACanvas, const System::Types::TRect &ARect);
Parameters
| Name | Description |
|---|---|
ACanvas |
The canvas used to measure text and graphics. |
ARect |
The rectangle whose width constrains the layout; its height is ignored. |
Returns
The height, in pixels, needed to render the full content at the given width.