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


IMap.ClearMapSurrounds Method (ArcObjects .NET 10.7 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 ( _
)
[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