MeasureTextFlow

Text, Layout

Description

Reports how many lines the remaining flow needs at a given width without advancing it

Syntax

Delphi

Function TPDFlib.MeasureTextFlow(FlowID: Integer; Width: Double): Integer;

ActiveX

Function PDFlib::MeasureTextFlow(FlowID As Long, Width As Double) As Long

DLL

int DLMeasureTextFlow(int InstanceID, int FlowID, double Width);

Return values

Returns the required line count, or 0 for a completed or invalid flow

Remarks

Measurement uses the current font, size, language, and hyphenation settings and never changes the flow cursor

See also

DrawTextFlow, DrawTextFlowColumns