ArcObjects Library Reference (Carto)  

IMap.ClearMapSurrounds Method

Removes all map surrounds from the map.

[Visual Basic .NET]
Public Sub ClearMapSurrounds ( _
)
[C#]
public void ClearMapSurrounds (
);
[C++]
HRESULT ClearMapSurrounds(
void
);

Product Availability

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

Remarks

The ClearMapSurrounds removes all of the surrounds associated with a Map thus resetting the MapSurroundCount to 0.

See Also

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