THPDFPage.TextOutBoxEx Method
方法摘要: THPDFPage.TextOutBoxEx Method
声明
function TextOutBoxEx(X, Y, LineSpacing, BoxWidth, BoxHeight: Integer; Text: AnsiString; Align: THPDFJustificationType): THPDFTextOutBoxResult;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
X | Left position of the text box |
Y | Top position of the text box |
LineSpacing | Line spacing used while laying out text |
BoxWidth | Text box width |
BoxHeight | Text box height |
Text | ANSI text to render |
Align | Horizontal justification mode |
返回值
THPDFTextOutBoxResult with layout and overflow details
使用说明
- Use this API when the caller needs to inspect text fitting results
- Use THPDFPage.TextOutBox for the simpler output-only workflow
- 页面级更改会影响同一页面的后续操作符;临时设置不应外泄时,请保存并恢复图形状态