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)

Usage

Dim range1 As Range

Dim returnValue As Integer
returnValue = range1.BookmarkID

Syntax

ReadOnly Property BookmarkID() As Integer
int BookmarkID {get;}
property Int32 BookmarkID{
    Int32 get();
}
public int get_BookmarkID();
function get BookmarkID() : int;

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Range Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Range Members