Table of Contents

Method RemoveWatermarks

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

RemoveWatermarks(WordDocument, DocumentPosition)

Removes every watermark from the document's headers (Word's Remove Watermark). One undo step; empty when there is none.

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

Parameters

document WordDocument

The document.

at DocumentPosition

Where the caret is.

Returns

DocumentEdit

The edit.

Exceptions

ArgumentNullException

document is null.

ArgumentException

The position is not in the document.