The fragment class represents a piece of text.
The fragment is a part of a multiline text shape or a text paragraph. All text of a fragment is typeset equally. Fragments allow to contain pieces of text with different
or have a different decoration (bold, italic, underlined,...).
A fragment may refer to a paragraph throug a . In this case the text may contain fields that will be replaced by properties of the referenced paragraph.
public class Fragment : Object,ICloneable
Initializes a new empty instance of the Fragment class.
Initialize a new instance of the Fragment class with given content.
Initialize a new instance of the Fragment class with given content and fontsize.
Initialize a new instance of the Fragment class with given content and font.
Initialize a new instance of the Fragment class with given content, font and fontsize.
The actions that the PDF reader will execute when this link is clicked.
Get or set the brush that is used to paint the background of the fragment.
Get or set if the text appears bold.
Get or set if the fragment is rendered with a double underline.
The font for this fragment. You can use one of the 14 standard PDF fonts or a TrueType font. Note that the TrueType functionality is available in the Professional edition only.
Font size in points. Fontsize 0 will autosize when the fragment is single in a MultilineTextShape.
If set the text property is scanned for fields and these are substituted during PDF generation. If Reference is not , this property is ignored.
Get or set if the text appears italic.
Get or set if the next fragment is started on the same line as this fragment.
Get or set the note to be inserted.
Get or set if the fragment is rendered as an outline.
Preserve spaces, tabs (\t), carriage returns (\r) and line feeds (\n). Set this property to true to include preformatted text like code fragments.
Get or set the direction of the text fragment.
Use this paragraph to resolve context fields.
If true a black 1pt outline is drawn around the clickable area of the link.
Get or set if the fragment is rendered striked out.
Get or set if the fragment is rendered as subscript.
Get or set if the fragment is rendered as superscript.
Suppress the insertion of an extra space between two successive fragments.
If PreserveWhiteSpace is true, each tab character (\t) is replaced by TabSize number of spaces. Default is 3.
The content of this fragment.
Get or set the color of the text and decoration.
If PreserveWhiteSpace is true, for each (see remarks) line the leading whitespaces will be removed.
Get or set if the fragment is rendered with an underline.