Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Range.BookmarkID property

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.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

int BookmarkID { get; }

Property value

Type: System.Int32

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.

Show:
© 2015 Microsoft