TTMSFNCPDFGraphicsLibHTMLLine Class
Represents a single styled text or image segment parsed from an HTML string, used as a rendering primitive in the PDF HTML layout engine.
API unit family: TMSFNCPDFGraphicsLibHTMLEngine
Syntax
TTMSFNCPDFGraphicsLibHTMLLine = class
Properties
| Name | Description |
|---|---|
| BackgroundColor | The background highlight color for this text segment. |
| Bitmap | The inline image for this segment when HasImage is True. |
| BitmapHeight | The display height in PDF units of the inline image. |
| BitmapWidth | The display width in PDF units of the inline image. |
| Bullet | When True, this segment is rendered as a bullet list item. |
| FontName | The font family name applied to the text in this segment. |
| FontSize | The font size in points for the text in this segment. |
| FontStyle | The set of font style flags (bold, italic, underline, strikethrough) applied to this segment. |
| HasImage | When True, the segment contains an inline image rather than text. |
| IsLine | When True, this segment represents a horizontal rule line. |
| IsUrl | When True, the text in this segment is a hyperlink. |
| LineBreak | When True, this segment represents a line break in the HTML flow. |
| LineColor | The color used to draw a horizontal rule when IsLine is True. |
| Offset | The vertical text offset in PDF units, used for subscript and superscript positioning. |
| Subscript | When True, the text is rendered as subscript (below the baseline). |
| Superscript | When True, the text is rendered as superscript (above the baseline). |
| Text | The plain-text content of this segment. |
| TextAlign | The horizontal text alignment applied to this segment. |
| TextColor | The foreground text color for this segment. |
| URL | The hyperlink URL associated with this segment when IsUrl is True. |
Methods
| Name | Description |
|---|---|
| Reset | Resets all segment properties to their default values. |