Fragment Class
The fragment class represents a piece of text.
Inheritance Hierarchy

Namespace: TallComponents.PDF.Layout.Paragraphs
Assembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version:
public class Fragment : Object, [T:tct4Ⴍ.ႳႳႷ], 

The Fragment type exposes the following members.

Public methodFragment
Initializes a new empty instance of the Fragment class.
Public methodFragment(String)
Initialize a new instance of the Fragment class with given content.
Public methodFragment(String, Double)
Initialize a new instance of the Fragment class with given content and fontsize.
Public methodFragment(String, Font)
Initialize a new instance of the Fragment class with given content and font.
Public methodFragment(String, Font, Double)
Initialize a new instance of the Fragment class with given content, font and fontsize.
Public methodClone
Clones a Fragment.
Protected methodCompose
Implement this method in a derived class to generate content dynamically.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead(String)
Read from XML file.
(Inherited from Object.)
Public methodRead(XmlElement)
Read from XML element.
(Inherited from Object.)
Public methodRead(XmlReader)
Read from XML reader.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public propertyActions
The actions that the PDF reader will execute when this link is clicked.
Public propertyBackground
Get or set the brush that is used to paint the background of the fragment.
Public propertyBold
Get or set if the text appears bold.
Public propertyDoubleUnderline
Get or set if the fragment is rendered with a double underline.
Public propertyCode exampleFont
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.
Public propertyFontSize
Font size in points.
Public propertyHasContextFields
If set the text property is scanned for fields and these are substituted during PDF generation. If Reference is not , this property is ignored.
Public propertyItalic
Get or set if the text appears italic.
Public propertyKeepWithNext
Get or set if the next fragment is started on the same line as this fragment.
Public propertyNote
Get or set the note to be inserted.
Public propertyOutline
Get or set if the fragment is rendered as an outline.
Public propertyPreserveWhiteSpace
Preserve spaces, tabs (\t), carriage returns (\r) and line feeds (\n). Set this property to true to include preformatted text like code fragments.
Public propertyReadDirection
Get or set the direction of the text fragment.
Public propertyReference
Use this paragraph to resolve context fields.
Public propertyCode exampleShowLinkBorder
If true a black 1pt outline is drawn around the clickable area of the link.
Public propertyStrikeOut
Get or set if the fragment is rendered striked out.
Public propertySubscript
Get or set if the fragment is rendered as subscript.
Public propertySuperscript
Get or set if the fragment is rendered as superscript.
Public propertySuppressSpaceBefore
Suppress the insertion of an extra space between two successive fragments.
Public propertyTabSize
If PreserveWhiteSpace is true, each tab character (\t) is replaced by TabSize number of spaces. Default is 3.
Public propertyText
The content of this fragment.
Public propertyTextColor
Get or set the color of the text and decoration.
Public propertyTrimStartOfLine
If PreserveWhiteSpace is true, for each (see remarks) line the leading whitespaces will be removed.
Public propertyUnderline
Get or set if the fragment is rendered with an underline.
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 font, color or have a different decoration (bold, italic, underlined,...).

A fragment may refer to a paragraph throug a GoToAction. In this case the text may contain fields that will be replaced by properties of the referenced paragraph.

See Also