ArcObjects Library Reference (Carto)  

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