Table of Contents

Method ConvertNote

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

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

document WordDocument

The document.

at DocumentPosition

A position in the note's text, or next to its reference.

Returns

DocumentEdit

The edit; After is at when it is in the body, else the start of the converted note.

Exceptions

ArgumentNullException

document is null.

ArgumentException

The position is not in the document.

InvalidOperationException

No note is at the position.