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


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

IMapFrame Interface

Provides access to the members that control the map element object.

Product Availability

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

When To Use

IMapFrame is the default interface for the MapFrame object.  The main purpose of the interface is to give the developer access to the map object  stored within the frame, and it's associated locator rectangles.

 

Members

Name Description
Method AddLocatorRectangle Add a new locator rectangle to the data frame.
Read/write property Background Frame background used by this element.
Read/write property Border Frame border used by this element.
Read/write property Container The frame's container.
Method CreateSurroundFrame Returns the map surround frame element of the type given in clsid. An optional style object may be specified.
Read/write property DraftMode Indicates if this element is in draft mode, i.e., draws fast.
Read/write property ExtentType The way in which the map extent of the frame is specified.
Method LocatorRectangle Returns the locator rectangle at the specified index.
Read-only property LocatorRectangleCount The number of locator rectangles.
Read/write property Map The associated map.
Read/write property MapBounds The bounds of the map displayed by the frame.
Read/write property MapScale The scale at which the map should be displayed.
Read-only property Object Object framed by this element.
Method RemoveAllLocatorRectangles Remove all the locator rectangles from the data frame.
Method RemoveLocatorRectangle Remove a locator rectangle from the data frame.
Read-only property Thumbnail Small bitmap representation of this element.

Inherited Interfaces

Interfaces Description
IFrameElement Provides access to members that control the Frame element object.

Classes that implement IMapFrame

Classes Description
MapFrame A graphic element for displaying maps.

See Also

MapFrame Class | IFrameElement Interface

.NET Samples

Copy the PageLayoutControl focus map and overwrite the MapControl map Print multiple pages Add map surrounds using the SymbologyControl Add map surrounds using the SymbologyControl Add map surrounds using the SymbologyControl Update a legend format with SymbologyControl area and line patches Enable layer drag and drop in the TOCControl