com.esri.arcgis.carto
Interface IEnumElement

All Superinterfaces:
Serializable
All Known Implementing Classes:
ElementSelection, IEnumElementProxy, SimpleElementSelection

public interface IEnumElement
extends Serializable

Provides access to members that control the Element enumerator object.

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).

Product Availability

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

See Also:
IActiveView.getSelection(), IGraphicsContainerSelect, IEnumElement

Method Summary
 IElement next()
          Returns the next element in the enumeration.
 void reset()
          Start the enumeration at the beginning.
 

Method Detail

next

IElement next()
              throws IOException,
                     AutomationException
Returns the next element in the enumeration.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.carto.IElement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

void reset()
           throws IOException,
                  AutomationException
Start the enumeration at the beginning.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.