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


IEnumSegment.Next Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

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 _
)
[C#]
public void Next (
    ref ISegment outSegment,
    ref int outPartIndex,
    ref int SegmentIndex
);
[C++]
HRESULT Next(
  ISegment** outSegment,
  long* outPartIndex,
  long* SegmentIndex
);
[C++]

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

Description

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

Remarks

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

See Also

IEnumSegment Interface

.NET Related Topics

How to add point IDs to a polyline | How to create a multipart polyline | How to use the IEnumSegment methods