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

IActiveView.Clear Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveView Interface > IActiveView.Clear Method
ArcGIS Developer Help

IActiveView.Clear Method

Empties the view contents.

[Visual Basic .NET]
Public Sub Clear ( _
public void Clear (

Product Availability

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


The Map object's implementation of Clear deletes all of the Layers in the Map (IMap::ClearLayers ), removes all MapSurrounds (IMap::ClearSurrounds ), removes all bookmarks (IMapBookMarks::RemoveAllBookMarks), and resets the extent stack.  Clear does not refresh the active view however.

Clear on PageLayout deletes all Elements, including MapFrames which hold a Map, resets the extent stack, and a new Map is created - there must always be a focus map.

See Also

IActiveView Interface