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

function CalculateTextSizeInt(AText: string): TSize; overload; virtual;

Parameters

Name Description
AText Text string to measure.

Returns

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