BookmarkCollectionClear Method |
Namespace: Aspose.Words
// Open a document with 3 bookmarks: "MyBookmark1", "My_Bookmark2", "MyBookmark3" Document doc = new Document(MyDir + "Bookmarks.docx"); // Remove all bookmarks from the document // The bookmarked text is not deleted doc.Range.Bookmarks.Clear();