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


IEnumElement Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IEnumElement Interface

Provides access to members that control the Element enumerator object.

Product Availability

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

Members

Description
Method Next Returns the next element in the enumeration.
Method Reset Start the enumeration at the beginning.

CoClasses that implement IEnumElement

CoClasses and Classes Description
ElementSelection (esriArcMapUI) Maintains the the graphic element selection.
SimpleElementSelection Simple selection object. Implements drawing and selecting but not clipboard support.

Remarks

This interface provides access to an enumeration of elements.

For instance, IGraphicsContainerSelect::SelectedElements returns an IEnumElement containing all of the selected elements of the Graphics Container.

An IEnumElement reference to a selection of elements is also available from IViewManager::ElementSelection and IActiveView::Selection (the ISelection returned can be casted into an IEnumelement).

See Also

IActiveView.Selection Property | IEnumElement Interface | IGraphicsContainerSelect Interface

.NET Samples

Move a graphic along a path in ArcMap (Code Files: cmdMoveGraphicAlongPath)