ArcGIS Pro 2.6 API Reference Guide
CountSegments Method

ArcGIS.Core.Geometry Namespace > MultipartBuilder<T> Class : CountSegments Method
0 based index of the part. Specify (count - 1) or -1 to get the segment count of the last part.
Gets the count of segments for the specified part. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public virtual int CountSegments( 
   int partIndex
)
Public Overridable Function CountSegments( _
   ByVal partIndex As Integer _
) As Integer

Parameters

partIndex
0 based index of the part. Specify (count - 1) or -1 to get the segment count of the last part.

Return Value

The count of segments.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
The partIndex is invalid. Ensure it is less than CountParts.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MultipartBuilder<T> Class
MultipartBuilder<T> Members