Skip to main content
Table of Contents

TTMSFNCGraphics.CalculateTextWidthInt Method

Returns the single-line rendered width of AText as a whole-pixel integer using the current font.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

FMX.TMSFNCGraphics.hppPascalC++
function CalculateTextWidthInt(AText: string): Integer; overload; virtual;
virtual int __fastcall CalculateTextWidthInt(System::UnicodeString AText)/* overload */;

Parameters

Name Description
AText Text string to measure.

Returns

The rendered width in whole pixels.