THPDFTextOutBoxResult Record
Reports characters written, lines written, and overflow for boxed text output
Declaration
THPDFTextOutBoxResult= record
CharsWritten: Integer;
LinesWritten: Integer;
Overflow: boolean;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
CharsWritten | Number of characters from the source string actually placed into the box |
LinesWritten | Number of text lines emitted inside the box |
Overflow | True when the box dimensions are invalid or text remained that did not fit |
Usage notes
- Returned by
TextOutBoxExandWideTextOutBoxEx; drawing stops as soon as the next line would fall below the box bottom - A degenerate box (zero or negative width or height) sets
Overflowimmediately without drawing anything - Compare
CharsWrittenwith the input length to paginate the remainder into the next box or page