THotPDF.PlaceLayoutElement Method
Draws a fitting layout element or a verified split head and returns an owned continuation fragment
声明
function PlaceLayoutElement(Element: THPDFLayoutElement; const Bounds: THPDFLayoutBounds; out Overflow: THPDFLayoutOverflow): boolean;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
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 |
返回值
Returns True when a complete element or verified placed fragment was drawn
使用说明
- 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