This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGroupElement Interface > IGroupElement.ClearElements Method (ArcObjects .NET 10.4 SDK) |
Removes all elements from the group.
[Visual Basic .NET]
Public Sub ClearElements ( _
)
[C#] public void ClearElements ( );
[C++]
HRESULT ClearElements(
void
);
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.
IGroupElement Interface | IGraphicsContainer.DeleteAllElements Method