ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipartBuilderEx Class / GetSegmentCount Method
The index of the part. Must be less than PartCount. To get the segment count of the last part, specify -1 or PartCount - 1.

In This Topic
    GetSegmentCount Method
    In This Topic
    Gets the number of segments in the specified part.
    Syntax
    public int GetSegmentCount( 
       int partIndex
    )
    Public Function GetSegmentCount( _
       ByVal partIndex As Integer _
    ) As Integer

    Parameters

    partIndex
    The index of the part. Must be less than PartCount. To get the segment count of the last part, specify -1 or PartCount - 1.
    Exceptions
    ExceptionDescription
    The part index is greater than PartCount - 1 or PartCount == 0 and part index is greater than 0.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also