This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControlDefault Interface > IMapControlDefault.ClearLayers Method (ArcObjects .NET 10.5 SDK) |
Removes all layers from the Map.
[Visual Basic .NET]
Public Sub ClearLayers ( _
)
[C#] public void ClearLayers ( );
[C++]
HRESULT ClearLayers(
void
);
IMapControlDefault Interface | IMapControl4.DeleteLayer Method | IMapControlDefault.DeleteLayer Method | IMapControl3.DeleteLayer Method | IMapControl4.Layer Property | IMapControl3.Layer Property | IMapControlDefault.Layer Property | IMapControl4.LayerCount Property | IMapControl3.LayerCount Property | IMapControlDefault.LayerCount Property | IMapControlDefault.MoveLayerTo Method | IMapControl4.MoveLayerTo Method | IMapControl3.MoveLayerTo Method