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;
virtual int __fastcall CalculateTextOverflow(System::UnicodeString Text, const System::Types::TRectF &Rect, int Columns, float Padding = 5.000000E+00f) = 0 /* 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;
virtual int __fastcall CalculateTextOverflow(System::UnicodeString Text, TTMSFNCPDFGraphicsLibRectArray Rects, float Padding = 5.000000E+00f) = 0 /* 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.