Share via


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)

Syntax

'Declaration
ReadOnly Property BookmarkID As Integer
    Get
'Usage
Dim instance As Range
Dim value As Integer

value = instance.BookmarkID
int BookmarkID { get; }

Property Value

Type: System.Int32

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.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace