ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / Multipart Class / PartCount Property
Example

In This Topic
    PartCount Property (Multipart)
    In This Topic
    Gets the number of parts in this instance.
    Syntax
    Public ReadOnly Property PartCount As Integer
    public int PartCount {get;}
    Example
    Get the parts of a Polyline
    {
      int numParts = polyline.PartCount;
      // get the parts as a readonly collection
      ReadOnlyPartCollection parts = polyline.Parts;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also