ArcGIS Pro 2.8 API Reference Guide
InsertPart(Int32,IEnumerable<Coordinate2D>) Method

ArcGIS.Core.Geometry Namespace > MultipartBuilderEx Class > InsertPart Method : InsertPart(Int32,IEnumerable<Coordinate2D>) Method
The index before which the part will be inserted. Must be less than or equal to PartCount. Specify -1 or (PartCount) to insert the part at the end of the Parts list.
An enumeration of coordinates.
Inserts a part constructed from the enumeration of coordinates to the MultipartBuilderEx. The part will be inserted into the Parts list.
Syntax
Public Overloads Sub InsertPart( _
   ByVal beforePartIndex As Integer, _
   ByVal coordinates As IEnumerable(Of Coordinate2D) _
) 

Parameters

beforePartIndex
The index before which the part will be inserted. Must be less than or equal to PartCount. Specify -1 or (PartCount) to insert the part at the end of the Parts list.
coordinates
An enumeration of coordinates.
Exceptions
ExceptionDescription
coordinates is null.
beforePartIndex is greater than PartCount.
Remarks
Line segments are constructed from the coordinates.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MultipartBuilderEx Class
MultipartBuilderEx Members
Overload List