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


IMap.ClearMapSurrounds Method (ArcObjects .NET 10.5 SDK)
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.CreateMapSurround Method | IMap.AddMapSurround Method | IMap.ClearMapSurrounds Method | IMap.DeleteMapSurround Method