IMap.AddMapSurround Method (ArcObjects .NET 10.6 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 _
public void AddMapSurround (
    IMapSurround MapSurround
HRESULT AddMapSurround(
  IMapSurround* MapSurround

Parameters 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