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

IMap.ClearMapSurrounds Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMap Interface > IMap.ClearMapSurrounds Method
ArcGIS Developer Help

IMap.ClearMapSurrounds Method

Removes all map surrounds from the map.

[Visual Basic .NET]
Public Sub ClearMapSurrounds ( _
public void ClearMapSurrounds (
HRESULT ClearMapSurrounds(

Product Availability

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


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

See Also

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