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


IEnumFeature Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IEnumFeature Interface

Provides access to members that hand out enumerated features and reset the enumeration.

Product Availability

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

Members

Description
Method Next Retrieves the next Feature in the enumeration sequence.
Method Reset Resets the enumeration sequence to the beginning.

CoClasses that implement IEnumFeature

CoClasses and Classes Description
EditSelection (esriEditor) Enumerates the editable selected features.
MapSelection (esriCarto) Maintains the map's feature selection.

Remarks

See the IMap::FeatureSelection example for an example of use and the remarks under IActiveView::Selection.

When this interface is used to access features from a map's feature selection (IMap.FeatureSelection), the IEnumFeatureSetup.AllFields property should be used to return fully hydrated features.

.NET Snippets

Create Graphic Buffers around Selected Features | Add Hyperlink | Flip Line Direction

.NET Samples

Convert part to feature command (Code Files: ConvertPart) | Curve conversion add-in (Code Files: CurveConversionCmd CurveConversionDockWin) | Implementing an XML builder external component (Code Files: XMLDocImpl) | Using HookActions in custom commands (Code Files: hookActionsCallout hookActionsFlash hookActionsGraphic hookActionsLabel hookActionsPan hookActionsZoom) | Move a graphic along a path in ArcMap (Code Files: cmdMoveGraphicAlongPath)

.NET Related Topics

Using the control commands