THotPDF.ConfigureParagraphPagination Method
Configures keep-with-next, orphan-line, and widow-line constraints for a paragraph created by CreateParagraph
Declaration
procedure ConfigureParagraphPagination(Index: Integer; KeepWithNext: boolean; MinOrphanLines: Integer= 2; MinWidowLines: Integer= 2);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Index | One-based paragraph handle returned by CreateParagraph |
KeepWithNext | Reserves at least one following line when the paragraph can move intact |
MinOrphanLines | Minimum opening lines allowed before a page break |
MinWidowLines | Minimum closing lines allowed after a page break |
Return value
This member does not return a value
Usage notes
- Both line minima must be positive and an invalid paragraph handle raises an exception
- Automatic continuation inherits the source page dimensions and active font
- Constraint decisions are available through the bounded layout diagnostic APIs