THotPDF.PlaceLayoutElement Method
Draws a fitting layout element or a verified split head and returns an owned continuation fragment
Deklaration
function PlaceLayoutElement(Element: THPDFLayoutElement; const Bounds: THPDFLayoutBounds; out Overflow: THPDFLayoutOverflow): boolean;
Unit
HPDFDoc
Parameter
| Name | Zweck |
|---|---|
Element | Caller-owned element to place or split |
Bounds | Available position and dimensions on the active page |
Overflow | Receives an owned continuation when the element splits, otherwise nil |
Rückgabewert
Returns True when a complete element or verified placed fragment was drawn
Verwendungshinweise
- A split must provide both a placed element and an overflow element
- The placed fragment is measured again and must fit before Draw is called
- The returned THPDFLayoutOverflow owns its continuation until DetachElement is called