Table of Contents

Class Paragraph

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

Represents a paragraph which is used to build up a document with text.

public class Paragraph : DocumentObject
Inheritance
object
Paragraph
Inherited Members
Extension Methods

Constructors

Paragraph()

Initializes a new instance of the Paragraph class.

Properties

Comment

Gets or sets a comment associated with this object.

Elements

Gets the collection of document objects that defines the paragraph.

Format

Gets or sets the ParagraphFormat object of the paragraph.

Style

Gets or sets the style name.

Values

Gets the underlying internal nullable values for the properties of this document object.

Methods

Add(Character)

Adds a new Character.

Add(BookmarkField)

Adds a new Bookmark.

Add(DateField)

Adds a new DateField.

Add(InfoField)

Adds a new InfoField.

Add(NumPagesField)

Adds a new NumPagesField.

Add(PageField)

Adds a new PageField.

Add(PageRefField)

Adds a new PageRefField.

Add(SectionField)

Adds a new SectionField.

Add(SectionPagesField)

Adds a new SectionPagesField.

Add(Footnote)

Adds a new Footnote.

Add(FormattedText)

Adds a new FormattedText.

Add(Hyperlink)

Adds a new Hyperlink.

Add(Image)

Adds a new Image.

Add(Text)

Adds a new Text.

AddBookmark(string, bool)

Adds a new Bookmark.

AddChar(char)

Adds a single character to the paragraph.

AddChar(char, int)

Adds a single character repeated the specified number of times to the paragraph.

AddCharacter(SymbolName)

Adds a Symbol object.

AddCharacter(SymbolName, int)

Adds one or more Symbol objects.

AddCharacter(char)

Adds a Symbol object defined by a character.

AddCharacter(char, int)

Adds one or more Symbol objects defined by a character.

AddDateField()

Adds a new DateField.

AddDateField(string)

Adds a new DateField.

AddFootnote()

Adds a new Footnote.

AddFootnote(string)

Adds a new Footnote with the specified text.

AddFormattedText()

Adds a new FormattedText.

AddFormattedText(Font)

Adds a new FormattedText with the given Font.

AddFormattedText(TextFormat)

Adds a new FormattedText object with the given format.

AddFormattedText(string)

Adds a new FormattedText with the given text.

AddFormattedText(string, Font)

Adds a new FormattedText object with the given text and font.

AddFormattedText(string, TextFormat)

Adds a new FormattedText object with the given text and format.

AddFormattedText(string, string)

Adds a new FormattedText object with the given text and style.

AddHyperlink(string)

Adds a new Hyperlink of Type "Local", i.e. the target is a Bookmark within the Document.

AddHyperlink(string, HyperlinkType)

Adds a new Hyperlink.

AddHyperlink(string, string, HyperlinkTargetWindow)

Adds a new Hyperlink of Type "ExternalBookmark", i.e. the target is a Bookmark in an external PDF Document.

AddHyperlinkToEmbeddedDocument(string, HyperlinkTargetWindow)

Adds a new Hyperlink of Type "EmbeddedDocument". The target is a Bookmark in an embedded Document in this Document.

AddHyperlinkToEmbeddedDocument(string, string, HyperlinkTargetWindow)

Adds a new Hyperlink of Type "EmbeddedDocument". The target is a Bookmark in an embedded Document in an external PDF Document.

AddImage(string)

Adds a new Image object.

AddInfoField(InfoFieldType)

Adds a new InfoField.

AddLineBreak()

Adds a line break.

AddMailLink(string)

Adds a new Hyperlink using the mailto protocol. The protocol is automatically added if missing.

AddNumPagesField()

Adds a new NumPagesField.

AddPageField()

Adds a new PageField.

AddPageRefField(string)

Adds a new PageRefField.

AddSectionField()

Adds a new SectionField.

AddSectionPagesField()

Adds a new SectionPagesField.

AddSpace(int)

Adds a space character as many as count.

AddTab()

Adds a horizontal tab.

AddText(string)

Adds a text phrase to the paragraph.

AddWebLink(string)

Adds a new Hyperlink using the HTTP or HTTPS protocol. The HTTP protocol is automatically added if neither HTTP nor HTTPS is specified.

Clone()

Creates a deep copy of this object.

DeepCopy()

Implements the deep copy of the object.