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


IGraphicsContainer.DeleteAllElements Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IGraphicsContainer.DeleteAllElements Method

Delete all the elements.

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

Product Availability

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

See Also

IGraphicsContainer Interface

.NET Snippets

Delete Graphics Refresh ActiveView | Create Graphic Buffers around Selected Features

.NET Samples

Extent view (Code Files: clsExtentView)