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


IMap.AddMapSurround Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMap.AddMapSurround Method

Adds a map surround to the map.

[Visual Basic .NET]
Public Sub AddMapSurround ( _
    ByVal MapSurround As IMapSurround _
)
[C#]
public void AddMapSurround (
    IMapSurround MapSurround
);
[C++]
HRESULT AddMapSurround(
  IMapSurround* MapSurround
);
[C++]

Parameters MapSurround [in]
MapSurround is a parameter of type IMapSurround

Product Availability

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

Remarks

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