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


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

IFeatureBookmark Interface

Provides access to members that control a feature bookmark.

Product Availability

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

Members

Name Description
Read-only property BookmarkType Type of the bookmark.
Method Draw Draws the feature on the map display.
Read/write property FeatureClass Feature class.
Read/write property FeatureId Feature id.
Method Flash Flashes the feature on the map display.
Read/write property Name Name of the bookmark.
Method PanTo Pans to the feature on the map display.
Method ZoomTo Zooms to the bookmark.

Inherited Interfaces

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

Classes that implement IFeatureBookmark

Classes Description
FeatureBookmark A feature bookmark.

Remarks

The FeatureBookmark object is used to create a Feature bookmark.

To create a Feature bookmark in ArcMap, you would use the Identify tool, Identify a feature and use the Set Bookmark command in the context menu.

This object stores the ID of a feature and the feature class it belongs to in the FeatureID and FeatureClass properties. You can later find the bookmark by its name and display the corresponding feature.

IFeatureBookmark inherits from ISpatialBookmark .

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

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

The Draw, Flash and PanTo methods are currently not implemented.