Table of Contents

TTMSFNCGraphicsContextiOS.CalculateText Method

Calculates the bounding rectangle required to render the given text.

API unit family: TMSFNCGraphics.iOS Declaring type: TTMSFNCGraphicsContextiOS

Syntax

function CalculateText(AText: string; ARect: TRectF; AWordWrapping: Boolean): TRectF; override;

Parameters

Name Description
AText The text string to measure.
ARect The available bounding rectangle used as the measurement constraint.
AWordWrapping Set to True to allow the text to wrap across multiple lines.

Returns

The tightest rectangle that contains the rendered text.