Provides access to members that enumerate rows in sequence.
Product Availability
Available with ArcGIS Desktop.
When To Use
Use the IEnumRow object when you need to maintain a collection of IRow objects.
The collection itself can consist of any object that implements the IRow interface. For example, the Feature coclass implements the IRow interface so you can use the IEnumRow object to maintain a collection of features.
The IEnumRow object is an enumeration and methods to cycle through it.
Use the Count method to identify how many objects exist within the collection.
Use the Next method to retrieve the next object in the enumeration.
Use the Reset method to reset the enumeration to the first object in the collection.
Click on the example to see the associate example of how the IEnumRow interface can be used when building a custom feature inspector. Also note that this example does not fully explain what a custom feature inspector is. Refer to the documentation of IObjectInspector for details.
[Visual Basic 6.0]
The following is a VBA code example demonstrating how to use the IEnumRow object to retrieve feature objects:
Dim pFeature As IFeature
Set pFeature = pEnumRow.Next
Do Until pFeature Is Nothing
MsgBox pFeature.OID
Set pFeature = pEnumRow.Next
Loop