Bookmark Interface 

Represents a single bookmark.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class ookmarkImplementation
    Implements Bookmark
End Class
Dim ookmarkImplementation1 As New ookmarkImplementation()

Syntax

Public Interface Bookmark
public interface Bookmark
public interface class Bookmark
public interface Bookmark
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.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

Bookmark Members