This document is archived and information here might be outdated.  Recommended version.


IARMap.BookmarkName Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (PublisherControls)  

IARMap.BookmarkName Property

The name of the bookmark.

[Visual Basic .NET]
Public Function get_BookmarkName ( _
    ByVal index As Integer _
) As String
[C#]
public string get_BookmarkName (
    int index
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

A spatial bookmark consists of name and an extent. The ARMap manages any spatial bookmarks that are present at the time a document is published. An ARMap can contain any number of spatial bookmarks.

BookmarkName returns the name of the spatial bookmark at the specified index in the ARMap's spatial bookmark collection.

Errors Returned

2042 800A07FA: The specified bookmark index or name is invalid 

Remarks

Use a zero-based index to access a spatial bookmark. For example, to get the first spatial bookmark in the collection, pass an index of 0, and to get the last spatial bookmark in the layer collection, pass an index of (BookmarkCount - 1).

[C#]

In C# use the get_BookmarkName method, as indexed property accessors are not supported.

See Also

IARMap Interface | IARMap.BookmarkCount Property | IARMap.ZoomToBookmark Method | IARMap.CenterAtBookmark Method