SetTextFlowMinLines

Text, Fonts

Description

Sets the fewest lines a box may take from a flow.

Syntax

Delphi

Function TPDFlib.SetTextFlowMinLines(FlowID, MinLines: Integer): Integer;

Parameters

FlowIDA handle from NewTextFlow.
MinLinesFewest lines to place at once. The default is 1.

Return values

1The setting was stored.
0The value was below 1, or the handle is not valid.

Remarks

A box that could only take fewer lines than this takes none and pushes them on, which is what stops a single line being stranded at the foot of a column. A passage shorter than the minimum is still placed, since otherwise it could never be laid out at all.

See also

DrawTextFlow