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

IEnumSegment.Next Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnumSegment Interface > IEnumSegment.Next Method
ArcGIS Developer Help

IEnumSegment.Next Method

Returns the next segment, and its location in the collection. If the location does not have parts (i.e. a path or ring) then the part index will always be zero.

[Visual Basic .NET]
Public Sub Next ( _
    ByRef outSegment As ISegment, _
    ByRef outPartIndex As Integer, _
    ByRef SegmentIndex As Integer _
public void Next (
    ref ISegment outSegment,
    ref int outPartIndex,
    ref int SegmentIndex
  ISegment** outSegment,
  System.Int32* outPartIndex,
  System.Int32* SegmentIndex
outSegment [out]

outSegment is a parameter of type ISegment** outPartIndex [in, out]
outPartIndex is a parameter of type long* SegmentIndex [in, out]
SegmentIndex is a parameter of type long*

Product Availability

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


The NextEx method advances the enumerator to the next position, returns the segment, the part index and the segment index.


See picture for a graphical explanation of some of the IEnumSegment methods.

See Also

IEnumSegment Interface