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


IEnumSegment.NextInPart 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.NextInPart Method
ArcGIS Developer Help

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,
  System.Int32* 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