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


MapFrame CoClass (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

MapFrame CoClass

A graphic element for displaying maps.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IActiveViewEvents Provides access to events that occur when the state of the active view changes.
IBoundsProperties Provides access to members that control Bounds Properties.
IClone (esriSystem) Provides access to members that control cloning of objects.
IConnectionPointContainer Supports connection points for connectable objects.
IDisplayAdmin (esriDisplay) Provides access to members that control display administration.
IDisplayEvents (esriDisplay) Provides access to members that control Display Events.
IElement Provides access to members that control the Element.
IElementProperties Provides access to members that control the Element Properties.
IElementProperties2 Provides access to members that control More Element Properties.
IElementProperties3 Provides access to members that control More Element Properties.
IFrameDraw Provides access to members that control frame drawing.
IFrameElement Provides access to members that control the Frame element object.
IFrameProperties Provides access to members that control the General properties for a frame.
IGraphicsComposite Provides access to members that control objects that are composed of graphic elements.
IGraphicsContainerProperty Provides access to members that control Graphics Container Properties.
IMapFrame Provides access to the members that control the map element object.
IMapGrids Provides access to members that control the map grids in a data frame.
IPersistStream (esriSystem)
IPropertySupport (esriSystem) Provides access to members that set a default property on an object.
ITransform2D (esriGeometry) Provides access to methods for transforming geometries using either specific parameters or arbitrary transformation objects (affine transformations, geographic transformations, etc.).
ITransformEvents (esriDisplay) Provides access to members that control Transform Events.

Event Interfaces

Interfaces Description
IMapFrameEvents (default) Provides access to the events that occur when the state of the map frame changes.

Remarks

The primary interface for a MapFrame object is IMapFrame, which inherits from IFrameElement.  The object also implements the IMapGrids and IMapFrameEvents interfaces (the MapFrame object is an event source).  A MapFrame object holds a a reference to a Map .

This object can be used to obtain the map within, or to manipulate the locator rectangles found within the frame.

Geometry: MapFrame accepts geometry of type esriGeometryEnvelope or esriGeometryPolygon.  If an envelope is passed it, it is converted to a Polygon internally.  The geometry represents the geometry of the frame that is drawn and it is typically a rectangle.
 

Working with Events

[Visual Basic 6.0]

When working with MapFrame's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pMapFrame as MapFrame

See Also

IFrameElement Interface | IOleFrame Interface | IMapSurroundFrame Interface