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


IElementCollection.Remove Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IElementCollection.Remove Method

Remove an element from the collection.

[Visual Basic .NET]
Public Sub Remove ( _
    ByVal Element As IElement _
)
[C#]
public void Remove (
    IElement Element
);
[C++]
HRESULT Remove(
  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

Removes specific elements from ElementCollection. Query method and TypeOf Statement can be used to determine a particular element before removing it.

 

See Also

IElementCollection Interface