ArcObjects Library Reference  (Carto)    

IMap.AddMapSurround Method

Adds a map surround to the map.

[Visual Basic 6.0]
Sub AddMapSurround(
    ByVal MapSurround As IMapSurround _
)
[Visual Basic .NET]
Public Sub AddMapSurround ( _
    ByVal MapSurround As IMapSurround _
)
[C#]
public void AddMapSurround (
    IMapSurround MapSurround
);
[Java]
public void addMapSurround (
    IMapSurround MapSurround
)
throws
    IOException,
    AutomationException
[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.CreateMapSurround Method | IMap.AddMapSurround Method

 


Feedback Send feedback on this page