Method ConvertNotes
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
documentWordDocumentThe document.
fromNoteKindThe kind converted.
Returns
- DocumentEdit
The edit (empty when the document has no note of the kind); the caret is not moved.
Exceptions
- ArgumentNullException
documentis null.- ArgumentOutOfRangeException
fromis not defined.