Skip to main content
Table of Contents

TTMSFNCGraphics.CalculateTextInt Method

Returns the tightest bounding rectangle that encloses a single-line AText string using the current font.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

FMX.TMSFNCGraphics.hppPascalC++
function CalculateTextInt(AText: String): TRect; overload; virtual;
virtual System::Types::TRect __fastcall CalculateTextInt(System::UnicodeString AText)/* overload */;

Parameters

Name Description
AText Text string to measure.

Returns

The tightest TRect enclosing the rendered text, in whole pixels.