ArcGIS Pro 2.8 API Reference Guide
GetSegment Method

ArcGIS.Core.Geometry Namespace > MultipartBuilderEx Class : GetSegment Method
The index of the part from which to get the segment. Must be less that PartCount. To get the segment from the last part, specify -1 or (PartCount - 1.
The index of the segment to get. Must be less than SegmentCount(partIndex). To get the last segment in the part, specify -1 or SegmentCount(partIndex) - 1.
Gets the segment at the specified index.
Syntax
public Segment GetSegment( 
   int partIndex,
   int segmentIndex
)
Public Function GetSegment( _
   ByVal partIndex As Integer, _
   ByVal segmentIndex As Integer _
) As Segment

Parameters

partIndex
The index of the part from which to get the segment. Must be less that PartCount. To get the segment from the last part, specify -1 or (PartCount - 1.
segmentIndex
The index of the segment to get. Must be less than SegmentCount(partIndex). To get the last segment in the part, specify -1 or SegmentCount(partIndex) - 1.
Exceptions
ExceptionDescription
partIndex is greater than PartCount - 1.
segmentIndex is greater than SegmentCount(partIndex) - 1.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MultipartBuilderEx Class
MultipartBuilderEx Members