Table of Contents

Method RemoveCoverPage

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

RemoveCoverPage(WordDocument, DocumentPosition)

Removes the document's cover page (Word's Remove Current Cover Page). One undo step; empty when there is none.

public static DocumentEdit RemoveCoverPage(this WordDocument document, DocumentPosition at)

Parameters

document WordDocument

The document.

at DocumentPosition

The caret.

Returns

DocumentEdit

The edit.

Exceptions

ArgumentNullException

document is null.

ArgumentException

The position is not in the document.