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


IElementCollection.Remove Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IE > IElementCollection Interface > IElementCollection.Remove Method
ArcGIS Developer Help

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