Method ConvertNote
ConvertNote(WordDocument, DocumentPosition)
Converts one note to the other kind (Word's "Convert to endnote" on a note): the note the position is in, or whose reference is at the position (just before or after it).
public static DocumentEdit ConvertNote(this WordDocument document, DocumentPosition at)
Parameters
documentWordDocumentThe document.
atDocumentPositionA position in the note's text, or next to its reference.
Returns
- DocumentEdit
The edit; After is
atwhen it is in the body, else the start of the converted note.
Exceptions
- ArgumentNullException
documentis null.- ArgumentException
The position is not in the document.
- InvalidOperationException
No note is at the position.