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


IGroupElement.ClearElements Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IGroupElement.ClearElements Method

Removes all elements from the group.

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

Product Availability

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

Remarks

ClearElements will delete all elements from the group and the map or layout.  This method can be used when you want to remove all elements in the group from the map.  IGraphicsContainer::DeleteAllElements will delete all the elements in the map, while IGroupElement::ClearElements will delete all elements in the current group.

 

See Also

IGroupElement Interface | IGraphicsContainer.DeleteAllElements Method