Range.BookmarkID Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the number of the bookmark that encloses the beginning of the specified selection or range; returns 0 (zero) if there's no corresponding bookmark.
public:
property int BookmarkID { int get(); };
public int BookmarkID { get; }
member this.BookmarkID : int
Public ReadOnly Property BookmarkID As Integer
Property Value
Remarks
The number corresponds to the position of the bookmark in the document — 1 for the first bookmark, 2 for the second one, and so on.