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


IARMap.CenterAtBookmark Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (PublisherControls)  

IARMap.CenterAtBookmark Method

Centers the map display on the bookmark.

[Visual Basic .NET]
Public Sub CenterAtBookmark ( _
    ByVal vBookmarkID As Object _
)
[C#]
public void CenterAtBookmark (
    object vBookmarkID
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Centers the spatial bookmark on the display to make it visible. The extent of the ARMap will change, but the MapScale will remain the same.

Specify a BookmarkName or a zero-based index to center a spatial bookmark. For example, to center the first spatial bookmark in the collection, pass an index of 0, and to center the last spatial bookmark in the layer collection, pass an index of (BookmarkCount - 1).

Errors Returned

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

2116 800A0844: Unable to change extent when extent type is fixed extent.

See Also

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