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

IMap.DeleteMapSurround 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.DeleteMapSurround Method
ArcGIS Developer Help

IMap.DeleteMapSurround Method

Deletes a map surround from the map.

[Visual Basic .NET]
Public Sub DeleteMapSurround ( _
    ByVal MapSurround As IMapSurround _
public void DeleteMapSurround (
    IMapSurround MapSurround
HRESULT DeleteMapSurround(
  IMapSurround* MapSurround
MapSurround [in]

MapSurround is a parameter of type IMapSurround*

Product Availability

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


DeleteMapSurround method removes the MapSurround object from the Map and decrements the MapSurroundCount by 1.

See Also

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