Skip to main content
Table of Contents

TTMSFNCGraphics.CalculateTextSizeInt Method

Returns the single-line bounding size of AText as a TSize in integer pixels using the current font.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

FMX.TMSFNCGraphics.hppPascalC++
function CalculateTextSizeInt(AText: string): TSize; overload; virtual;
virtual System::Types::TSize __fastcall CalculateTextSizeInt(System::UnicodeString AText)/* overload */;

Parameters

Name Description
AText Text string to measure.

Returns

The width and height of the rendered text as a TSize in whole pixels.