This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARMap Interface > IARMap.CenterAtBookmark Method (ArcObjects .NET 10.5 SDK) |
Centers the map display on the bookmark.
[Visual Basic .NET] Public Sub CenterAtBookmark ( _ ByVal vBookmarkID As Object _ )
[C#] public void CenterAtBookmark ( object vBookmarkID );
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).
2042 800A07FA: The specified bookmark index or name is invalid
2116 800A0844: Unable to change extent when extent type is fixed extent.
IARMap Interface | IARMap.BookmarkCount Property | IARMap.BookmarkName Property | IARMap.ZoomToBookmark Method