Table of Contents

Method ConvertNotes

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

ConvertNotes(WordDocument, NoteKind)

Converts every note of a kind to the other kind (Word's "Convert all footnotes to endnotes" and back).

public static DocumentEdit ConvertNotes(this WordDocument document, NoteKind from)

Parameters

document WordDocument

The document.

from NoteKind

The kind converted.

Returns

DocumentEdit

The edit (empty when the document has no note of the kind); the caret is not moved.

Exceptions

ArgumentNullException

document is null.

ArgumentOutOfRangeException

from is not defined.