Class Paragraph
A paragraph (w:p): a sequence of inlines plus sparse paragraph formatting and the formatting of the paragraph mark itself.
public sealed class Paragraph : Block
- Inheritance
-
Paragraph
- Inherited Members
- Extension Methods
Constructors
- Paragraph()
Initializes an empty paragraph.
- Paragraph(string)
Initializes a paragraph containing a single text run.
Properties
- Children
Gets this node's children in document order. Nodes without children return an empty list. The list is a live view; mutate through the typed collections (for example Inlines), not through this property.
- Format
Gets or sets the paragraph's direct formatting (w:pPr). Never null; empty when unspecified.
- Inlines
Gets the paragraph content in document order.
- MarkFormat
Gets or sets the run formatting of the paragraph mark (w:pPr/w:rPr), or null. The mark's formatting sizes empty paragraphs and is XOR-relevant for toggles.
- MarkRevision
Gets or sets the tracked-change annotation on the paragraph mark (w:pPr/w:rPr/w:ins or w:del), or null. A deleted mark merges this paragraph into the next one when revisions are resolved to Final.
Methods
- Accept(DomVisitor)
Dispatches to the visitor method for this node's concrete type.
- Clone()
Creates a detached deep copy.
- CloneCore()
Creates the deep copy for Clone(). Implementations copy all owned state, deep-clone children and copy unknown-XML islands.
- RemoveChildCore(DomNode)
Removes
childfrom this node's child collections.