public void ClearBookmarks()
{
//ExStart
//ExFor:BookmarkCollection.Clear
//ExSummary:Shows how to remove all bookmarks from a document.
Document doc = new Document(MyDir + "Bookmark.doc");
doc.Range.Bookmarks.Clear();
//ExEnd
// Verify that the bookmarks were removed
Assert.AreEqual(0, doc.Range.Bookmarks.Count);
}