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.DeleteMapSurround Method | IMap.ClearMapSurrounds Method | IMap.AddMapSurround Method | IMap.CreateMapSurround Method