ArcObjects Library Reference (Geometry)  

IEnumSegment.NextInPart Method

Returns the next segment in current part, goes back to first segment after last segment in part is encountered.

[Visual Basic .NET]
Public Sub NextInPart ( _
    ByRef outSegment As ISegment, _
    ByRef OutSegmentIndex As Integer _
)
[C#]
public void NextInPart (
    ref ISegment outSegment,
    ref int OutSegmentIndex
);
[C++]
HRESULT NextInPart(
  ISegment** outSegment,
  long* OutSegmentIndex
);
[C++]

Parameters

outSegment [out]

  outSegment is a parameter of type ISegment

OutSegmentIndex [in, out]   OutSegmentIndex is a parameter of type long

Product Availability

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

Description

The NextInPart method is returning the next segment in the current part. As oppose to the Next method the NextInpart method limits its search to the part where the enumerator is currently located. For example, if the enumerator is located on the last segment of a given part then NextInPartEx will return the first segment of that part.

See Also

IEnumSegment Interface

.NET Related Topics

How to use the IEnumSegment methods |