Bookmark Interface

Represents a single bookmark.

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

Syntax

'Declaration
<GuidAttribute("00020968-0000-0000-C000-000000000046")> _
Public Interface Bookmark
'Usage
Dim instance As Bookmark
[GuidAttribute("00020968-0000-0000-C000-000000000046")]
public interface Bookmark

Remarks

The Bookmark object is a member of the Bookmarks collection. The Bookmarks collection includes all the bookmarks listed in the Bookmark dialog box (Insert menu).

Use Bookmarks(index), where index is the bookmark name or index number, to return a single Bookmark object. You must exactly match the spelling (but not necessarily the capitalization) of the bookmark name.

The index number represents the position of the bookmark in the Selection or Range object. For the Document object, the index number represents the position of the bookmark in the alphabetic list of bookmarks in the Bookmarks dialog box (click Name to sort the list of bookmarks alphabetically).

Use the Add method to add a bookmark to a document range.

Use the BookmarkID property with a range or selection object to return the index number of the Bookmark object in the Bookmarks collection.

Use the Exists method to determine whether a bookmark already exists in the selection, range, or document.

See Also

Reference

Bookmark Members

Microsoft.Office.Interop.Word Namespace