HtmlFragment

HtmlFragment class

Represents html fragment.

The HtmlFragment type exposes the following members:

Constructors

NameDescription
HtmlFragment(text)Initializes a new instance of the HtmlFragment class

Properties

NameDescription
vertical_alignmentGets or sets a vertical alignment of paragraph
horizontal_alignmentGets or sets a horizontal alignment of paragraph
marginGets or sets a outer margin for paragraph (for pdf generation)
is_first_paragraph_in_columnGets or sets a bool value that indicates whether this paragraph will be at next column.
Default is false.(for pdf generation)
is_kept_with_nextGets or sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph.
Default is false.(for pdf generation)
is_in_new_pageGets or sets a bool value that force this paragraph generates at new page.
Default is false.(for pdf generation)
is_in_line_paragraphGets or sets a paragraph is inline.
Default is false.(for pdf generation)
hyperlinkGets or sets the fragment hyperlink(for pdf generator).
z_indexGets or sets a int value that indicates the Z-order of the graph. A graph with larger ZIndex
will be placed over the graph with smaller ZIndex. ZIndex can be negative. Graph with negative
ZIndex will be placed behind the text in the page.
rectangleGets rectangle of the HtmlFragment
is_paragraph_has_marginGets or sets is paragraph has default margin otherwise margin is 0
is_break_wordsGets or sets words break
text_stateGets or sets font
html_load_optionsGets or sets HtmlLoadOptions that will be used for loading (and rendering) of HTML into this instance of class.
Please use it when it’s necessary use specific setting for import of HTML for this or that instance
(f.e when this or that instance should use specific BasePath for imported HTML or should use specific loader of external resources)
If parameter is default (null), then standard HTML loading options will be used.

Methods

NameDescription
clone()Clones html fragment.

See Also