Table of Contents

Class SectionFormat

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

Sparse section-level formatting (ECMA-376 Part 1 §17.6.17 w:sectPr). Sections do not participate in style inheritance; unspecified values fall back to application defaults in the style resolver (US Letter, 1in margins, per Word).

public sealed class SectionFormat : UnknownXmlHost
Inheritance
SectionFormat
Inherited Members

Constructors

SectionFormat()

Properties

Bidi

Gets or sets right-to-left section flow (w:bidi), or null.

Columns

Gets or sets the column layout (w:cols), or null.

DocGridLinePitch

Gets or sets the document-grid line pitch (w:docGrid w:linePitch), or null.

DocGridType

Gets or sets the document-grid mode (w:docGrid w:type). Defaults to Default.

EndnoteProperties

Gets or sets endnote options for the section (w:endnotePr), or null.

FooterDistance

Gets or sets the footer distance from the page bottom (w:pgMar w:footer), or null.

FootnoteProperties

Gets or sets footnote options for the section (w:footnotePr), or null.

Gutter

Gets or sets the gutter width (w:pgMar w:gutter), or null.

HeaderDistance

Gets or sets the header distance from the page top (w:pgMar w:header), or null.

Kind

Gets or sets how the section begins (w:type), or null (next page).

MarginBottom

Gets or sets the bottom margin (w:pgMar w:bottom; negative = fixed), or null.

MarginLeft

Gets or sets the left margin (w:pgMar w:left), or null.

MarginRight

Gets or sets the right margin (w:pgMar w:right), or null.

MarginTop

Gets or sets the top margin (w:pgMar w:top; negative = fixed regardless of header depth), or null.

Orientation

Gets or sets the page orientation (w:pgSz w:orient), or null.

PageHeight

Gets or sets the page height (w:pgSz w:h), or null.

PageNumberFormat

Gets or sets the raw ST_NumberFormat token for page numbers (w:pgNumType w:fmt), or null.

PageNumberStart

Gets or sets the starting page number (w:pgNumType w:start), or null (continue).

PageWidth

Gets or sets the page width (w:pgSz w:w), or null.

RtlGutter

Gets or sets whether the gutter is on the right (w:rtlGutter), or null.

TextDirection

Gets or sets the text flow direction (w:textDirection), or null.

TitlePage

Gets or sets whether the section has a distinct first-page header/footer (w:titlePg), or null.

VerticalAlignment

Gets or sets the vertical alignment of section content (w:vAlign), or null.

Methods

Clone()

Creates a deep copy, including preserved unknown-XML islands.