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


IGroupElement.DeleteElement Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGroupElement Interface > IGroupElement.DeleteElement Method
ArcGIS Developer Help

IGroupElement.DeleteElement Method

Removes the given element from the group.

[Visual Basic .NET]
Public Sub DeleteElement ( _
    ByVal Element As IElement _
)
[C#]
public void DeleteElement (
    IElement Element
);
[C++]
HRESULT DeleteElement(
  IElement* Element
);
[C++]
Parameters
Element [in]

Element is a parameter of type IElement*

Product Availability

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

Remarks

DeleteElement is used to delete the element.  If you want to remove the element from the group without deleting it, then it is necessary to maintain the reference to the element and re-add it to the GraphicsContainer after issuing the DeleteElement statement.

See Also

IGroupElement Interface