Table of Contents

Class SectionEditingExtensions

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

Section breaks inserted and removed as undoable edits, as Word does them (WQ-0098, tools/Probe-WordSectionBreaks.ps1).

public static class SectionEditingExtensions
Inheritance
SectionEditingExtensions
Inherited Members

Remarks

A break splits the paragraph at the caret (at a paragraph's start the first half is an empty paragraph, at its end the second half is): the first half ends the earlier section, which keeps the section's format and its header and footer references; the second half starts the later section, which has the same page format, starts as the break says, and has no header or footer of its own (it links to the earlier one's).

Removing a break (Backspace at the start of a section, or deleting a span across one) moves the earlier section's content into the later section, which keeps its own format; a header or footer the later section did not have of its own comes from the earlier section, so the pages show what they showed.

Methods

InsertSectionBreak(WordDocument, DocumentPosition, SectionStartKind)

Inserts a section break at a position, as one undoable edit.