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


IMapFrame Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

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

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.

CoClasses that implement IMapFrame

CoClasses and Classes Description
MapFrame A graphic element for displaying maps.

See Also

MapFrame Class | IFrameElement Interface

.NET Snippets

Add Scale Bar | Add North Arrow | Add Legend

.NET Samples

Copy the PageLayoutControl focus map and overwrite the MapControl map (Code Files: CopyFocusMap) | Print multiple pages (Code Files: PrintMultiPagesVB_NET_Addin) | Enable layer drag and drop in the TOCControl (Code Files: LayerDragDrop) | Add map surrounds using the SymbologyControl (Code Files: NorthArrows ScaleBars ScaleText) | Update a legend format with SymbologyControl area and line patches (Code Files: AreaLinePatches)

.NET Related Topics

How to create map grids | How to set output image quality | Working with map surrounds