Table of Contents

ITMSFNCCustomPDFGraphicsLib.CalculateTextOverflow Method

Returns the number of characters that overflow the specified single-column rectangle.

API unit family: TMSFNCPDFGraphicsLib Declaring type: ITMSFNCCustomPDFGraphicsLib

Overloads

Overload 1

Returns the number of characters that overflow the specified single-column rectangle.

function CalculateTextOverflow(Text: UnicodeString; Rect: TRectF; Columns: Integer; Padding: Single = 5.0): Integer; overload;

Parameters

Name Description
Text Plain text to flow through the columns.
Rect Bounding rectangle for the text column in PDF coordinate units.
Columns Number of columns to flow the text across.
Padding Gap between adjacent columns in PDF coordinate units.

Returns

Number of characters that did not fit; 0 means all text fits.

Overload 2

Returns the number of characters that overflow the specified array of rectangles.

function CalculateTextOverflow(Text: UnicodeString; Rects: TTMSFNCPDFGraphicsLibRectArray; Padding: Single = 5.0): Integer; overload;

Parameters

Name Description
Text Plain text to flow through the rectangles.
Rects Array of bounding rectangles for the text columns in PDF coordinate units.
Padding Gap between adjacent columns in PDF coordinate units.

Returns

Number of characters that did not fit; 0 means all text fits.