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

IMap.AddMapSurround Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMap Interface > IMap.AddMapSurround Method
ArcGIS Developer Help

IMap.AddMapSurround Method

Adds a map surround to the map.

[Visual Basic .NET]
Public Sub AddMapSurround ( _
    ByVal MapSurround As IMapSurround _
public void AddMapSurround (
    IMapSurround MapSurround
HRESULT AddMapSurround(
  IMapSurround* MapSurround
MapSurround [in]

MapSurround is a parameter of type IMapSurround*

Product Availability

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


Use this method to associate a new MapSurround object with the Map.  Both IMap::CreateMapSurround and IMapFrame::CreateSurroundFrame automatically call this method to associate the surrounds they create with the Map.
Use IMap::MapSurroundCount to get the total number of surrounds associated with the Map.

See Also

IMap Interface | IMap.CreateMapSurround Method | IMap.AddMapSurround Method | IMap.ClearMapSurrounds Method | IMap.DeleteMapSurround Method