ArcGIS Pro 3.0 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 int PartCount {get;}
    Public ReadOnly Property PartCount As Integer
    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, Windows 10, Windows 8.1

    See Also