Modifica

Condividi tramite


Bookmark Interface

Definition

Represents a single bookmark.

public interface class Bookmark
[System.Runtime.InteropServices.Guid("00020968-0000-0000-C000-000000000046")]
public interface Bookmark
type Bookmark = interface
Public Interface Bookmark
Attributes

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(String, Object) 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(String) method to determine whether a bookmark already exists in the selection, range, or document.

Properties

Application

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

Column

Returns a value that indicates if the specified bookmark is a table column.

Creator

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

Empty

Returns a value that indicates if the specified bookmark is empty.

End

Returns or sets the ending character position of a bookmark.

Name

Returns the name of the specified Bookmark object.

Parent

Returns the parent object of the specified Bookmark object.

Range

Returns a Range object that represents the portion of a document that's contained in the specified Bookmark object.

Start

Returns or sets the starting character position of a bookmark.

StoryType

Returns the story type for the specified bookmark.

Methods

Copy(String)

Sets a new bookmark identified by the Name argument to the location marked by the specified Bookmark object.

Delete()

Deletes the specified Bookmark object.

Select()

Selects the specified Bookmark object.

Applies to