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