ArcGIS Pro 3.0 API Reference Guide
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 GetSegmentCount(partIndex). To get the last segment in the part, specify -1 or GetSegmentCount(partIndex) - 1.

In This Topic
    GetSegment Method
    In This Topic
    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 GetSegmentCount(partIndex). To get the last segment in the part, specify -1 or GetSegmentCount(partIndex) - 1.
    Exceptions
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also