How do I get the bookmarks present in the document?
The document.Bookmarks property holds the collection of bookmarks present in the current document. This is assigned to the BookmarkCollection class.
// Get the bookmarks collections in the document.
BookmarkCollection bookmarks = document.Bookmarks;
' Get the bookmarks collections in the document.
Dim bookmarks As BookmarkCollection = document.Bookmarks
Here is the sample.