Table of Contents

Class Section

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

A section (w:sectPr scope): a run of block content plus page geometry and references to the headers and footers that apply. Header/footer parts are owned by HeaderFooters and can be shared by multiple sections, so the section holds references, not children. A section without a reference of a given use inherits the previous section's header/footer at resolve time (§17.10.5).

public sealed class Section : DomNode
Inheritance
Section
Inherited Members
Extension Methods

Constructors

Section()

Initializes an empty section.

Properties

Blocks

Gets the section's block content in document order.

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.

FooterDefault

Gets or sets the footer for ordinary pages, or null (inherit).

FooterEven

Gets or sets the even-page footer, or null (inherit).

FooterFirst

Gets or sets the first-page footer, or null (inherit).

Format

Gets or sets the section's formatting (w:sectPr). Never null; empty when unspecified.

HeaderDefault

Gets or sets the header for ordinary pages, or null (inherit).

HeaderEven

Gets or sets the even-page header, or null (inherit).

HeaderFirst

Gets or sets the first-page header, or null (inherit).

Methods

Accept(DomVisitor)

Dispatches to the visitor method for this node's concrete type.

Clone()

Creates a detached deep copy. Header/footer references still point at the original HeaderFooter objects; Clone() remaps them when the whole document is cloned.

CloneCore()

Creates the deep copy for Clone(). Implementations copy all owned state, deep-clone children and copy unknown-XML islands.

RemoveChildCore(DomNode)

Removes child from this node's child collections.