This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARMap Interface > IARMap.BookmarkName Property (ArcObjects .NET 10.4 SDK) |
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 );
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.
2042 800A07FA: The specified bookmark index or name is invalid
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).
In C# use the get_BookmarkName method, as indexed property accessors are not supported.
IARMap Interface | IARMap.BookmarkCount Property | IARMap.ZoomToBookmark Method | IARMap.CenterAtBookmark Method