Method RemoveBookmark
RemoveBookmark(WordDocument, DocumentPosition, string)
Insert > Bookmark, Delete, as one undoable edit: the bookmark goes, the text it marked stays.
public static DocumentEdit RemoveBookmark(this WordDocument document, DocumentPosition at, string name)
Parameters
documentWordDocumentThe document.
atDocumentPositionnamestringThe name, compared ignoring case.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
documentornameis null.- ArgumentException
The position is not in the document, or no bookmark has the name.