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


IAOIBookmark Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IAOIBookmark Interface
ArcGIS Developer Help

IAOIBookmark Interface

Provides access to members that control an AOI bookmark.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Read-only property BookmarkType Type of the bookmark.
Read/write property Location Location of the bookmark.
Read/write property Name Name of the bookmark.
Method ZoomTo Zooms to the bookmark.

Inherited Interfaces

Interfaces Description
ISpatialBookmark Provides access to members that control a spatial bookmark.

Classes that implement IAOIBookmark

Classes Description
AOIBookmark An AOI bookmark.

Remarks

The AOIBookmark object is used to create an Area of Interest bookmark.

In ArcMap, Area of Interest bookmarks are created using the View menu's Bookmarks->Create command.

This object persists an envelope in its Location property corresponding to the current extent of the map. You can later find the bookmark by its name and set the map�s extent to be equal to the extent stored in the bookmark.

IAOIBookmark inherits from ISpatialBookmark .

To add bookmarks to the map, QueryInterface IMapBookMarks interface from IMap interface and then call the IMapBookmarks::AddBookMark method.

See also IFeatureBookmark and the examples in the Carto library overview.

.NET Samples

Add a custom bookmarks MultiItem to the ToolbarControl