ArcObjects Library Reference  (Carto)    

IActiveView.Clear Method

Empties the view contents.

[Visual Basic 6.0]
Sub Clear
[Visual Basic .NET]
Public Sub Clear ( _
)
[C#]
public void Clear (
);
[Java]
public void clear (
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Clear(
void
);

Product Availability

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

Remarks

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

 


Feedback Send feedback on this page