This document is archived and information here might be outdated. Recommended version. |
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,
System.Int32* outPartIndex,
System.Int32* 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*
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.