HtmlFragment class

Represents html fragment.

public sealed class HtmlFragment : FormattedFragment


Name Description
HtmlFragment(string) Initializes a new instance of the HtmlFragment class.


Name Description
virtual HorizontalAlignment { get; set; } Gets or sets a horizontal alignment of paragraph
HtmlLoadOptions { get; set; } Gets 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.
virtual Hyperlink { get; set; } Gets or sets the fragment hyperlink(for pdf generator).
IsBreakWords { get; set; } Gets or sets words break
IsFirstParagraphInColumn { get; set; } Gets or sets a bool value that indicates whether this paragraph will be at next column. Default is false.(for pdf generation)
IsInLineParagraph { get; set; } Gets or sets a paragraph is inline. Default is false.(for pdf generation)
IsInNewPage { get; set; } Gets or sets a bool value that force this paragraph generates at new page. Default is false.(for pdf generation)
IsKeptWithNext { get; set; } Gets 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)
IsParagraphHasMargin { get; set; } Gets or sets is paragraph has default margin otherwise margin is 0
Margin { get; set; } Gets or sets a outer margin for paragraph (for pdf generation)
Rectangle { get; } Gets rectangle of the HtmlFragment
TextState { get; set; } Gets or sets font
virtual VerticalAlignment { get; set; } Gets or sets a vertical alignment of paragraph
ZIndex { get; set; } Gets 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.


Name Description
override Clone() Clones html fragment.

See Also