ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipartBuilderEx Class / RemoveParts Method
The index from which the parts are removed. Must be in the range [0, PartCount - 1] inclusive.
The index up to which the parts are removed. Must be in the range [fromPartIndex, PartCount - 1] inclusive. The toPartIndex is excluded from the indices that are removed. For example, if fromPartIndex = 3, toPartIndex = 7, then the parts at indices 3, 4, 5, and 6 will be removed.

In This Topic
    RemoveParts Method
    In This Topic
    Removes a range of parts.
    Syntax
    public void RemoveParts( 
       int fromPartIndex,
       int toPartIndex
    )
    Public Sub RemoveParts( _
       ByVal fromPartIndex As Integer, _
       ByVal toPartIndex As Integer _
    ) 

    Parameters

    fromPartIndex
    The index from which the parts are removed. Must be in the range [0, PartCount - 1] inclusive.
    toPartIndex
    The index up to which the parts are removed. Must be in the range [fromPartIndex, PartCount - 1] inclusive. The toPartIndex is excluded from the indices that are removed. For example, if fromPartIndex = 3, toPartIndex = 7, then the parts at indices 3, 4, 5, and 6 will be removed.
    Exceptions
    ExceptionDescription
    fromPartIndex is less than zero or greater than PartCount - 1.
    toPartIndex is less than fromPartIndex or greater than PartCount.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also