ArcObjects Library Reference (Carto)  

IAOIBookmark Interface

Provides access to members that control an AOI bookmark.

Product Availability

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

Members

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.

CoClasses that implement IAOIBookmark

CoClasses and 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 Snippets

Create Spatial Bookmark for ActiveView Extent

.NET Samples

Add a custom bookmarks MultiItem to the ToolbarControl (Code Files: CreateBookmark)

.NET Related Topics

How to create AOIs and bookmarks