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


IMapSurround Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapSurround Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapSurround Interface

Provides access to members that control the map surround.

Product Availability

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

Members

Name Description
Method DelayEvents Used to batch operations together to minimize notifications.
Method Draw Draws the map surround into the specified display bounds.
Method FitToBounds Adjusts the map surround to fit the bounds. The changed argument indicates whether the size of the map surround was changed.
Read-only property Icon Icon used to represent the map surround.
Read/write property Map The parent map.
Read/write property Name Name of the map surround.
Method QueryBounds Returns the bounds of the map surround.
Method Refresh Makes sure the latest updates are refected the next time the Map Surround is drawn.

CoClasses that implement IMapSurround

CoClasses and Classes Description
AlternatingScaleBar A map surround for displaying a single alternating scale bar.
DoubleAlternatingScaleBar A map surround for displaying a double alternating scale bar.
HollowScaleBar A map surround for displaying a hollow scale bar.
ImageInset A map surround for displaying an inset.
Legend A map surround for displaying a legend.
MapInset A map surround for displaying an inset.
MapTitle A map surround for displaying a map title.
MarkerNorthArrow A map surround for displaying a marker north arrow.
Overview A map surround for displaying an overview.
Scalebar Obsolete scale bar coclass. Exists to preserve document format.
ScaleLine A map surround for displaying a scale line.
ScaleText A map surround for displaying a scale text.
SingleDivisionScaleBar A map surround for displaying a single division scale bar.
SteppedScaleLine A map surround for displaying a stepped scale line.

Remarks

IMapSurround provides access to the properties and method of a map surround.  When creating a new map surround it is recommended that IMapFrame::CreateSurroundFrame is used rather than creating the class and hooking it up to the Map / MapFrame separately.

.NET Snippets

Add North Arrow | Add Scale Bar

.NET Related Topics

Working with map surrounds