Bookmarks Bookmarks Bookmarks Interface

Definition

A collection of Bookmark objects that represent the bookmarks in the specified selection, range, or document.

public interface class Bookmarks : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020967-0000-0000-C000-000000000046")]
public interface Bookmarks : System.Collections.IEnumerable
Public Interface Bookmarks
Implements IEnumerable
Attributes
Implements

Remarks

Use the Bookmarks property to return the Bookmarks collection.

Use the Add(String, Object) method to set a bookmark for a range in a document.

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).

The ShowHidden property affects the number of elements in the Bookmarks collection. If ShowHidden is True, hidden bookmarks are included in the Bookmarks collection.

Properties

Application Application Application

Returns an Application object that represents the creator of the specified object.

Count Count Count

Returns the number of items in the specified collection.

Creator Creator Creator

Returns a value that indicates the application in which the specified object was created.

DefaultSorting DefaultSorting DefaultSorting

Returns or sets the sorting option for bookmark names displayed in the Bookmark dialog box (Insert menu).

Item[Object] Item[Object] Item[Object]

Returns an individual object in a collection.

Parent Parent Parent

Returns the parent object of the specified object.

ShowHidden ShowHidden ShowHidden

Returns or sets a value that indicates if hidden bookmarks are included in the Bookmarks collection.

Methods

Add(String, Object) Add(String, Object) Add(String, Object)

Adds a bookmark to a range.

Exists(String) Exists(String) Exists(String)

Determines whether the specified bookmark exists.

GetEnumerator() GetEnumerator() GetEnumerator()

Applies to