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


IGMxDocument.RemoveAllLayers Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcGlobe > ESRI.ArcGIS.ArcGlobe > Interfaces > IG > IGMxDocument Interface > IGMxDocument.RemoveAllLayers Method
ArcGIS Developer Help

IGMxDocument.RemoveAllLayers Method

Removes all layers.

[Visual Basic .NET]
Public Sub RemoveAllLayers ( _
)
[C#]
public void RemoveAllLayers (
);

Product Availability

Available with ArcGIS Desktop. Requires 3D Analyst Extension.

Remarks

RemoveAllLayers deletes all the layers present in the Table Of Contents of the current ArcGlobe document and therefore, should be carefully used. 

See Also

IGMxDocument Interface