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


IEnumRow.Next Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Editor)  

IEnumRow.Next Method

Retrieves the next row in the sequence.

[Visual Basic .NET]
Public Function Next ( _
) As IRow
[C#]
public IRow Next (
);

Product Availability

Available with ArcGIS Desktop.

Remarks

The Next method retreives the next IRow object in the enumeration. If the enumeration has been reset, the Next method will return the first row in the enumeration. If the enumeration is at the end of its collection, the Next method will return a NULL object.

  
[C#]
 IRow row=enumRow.Next 
 If (row == null)
  {
    Windows.Forms.MessageBox.Show("Enumeration is empty!");
    return;
  }

See Also

IEnumRow Interface

.NET Samples

Tabbed feature inspector (Code Files: ObjectInspector)