ArcGIS Pro 2.6 API Reference Guide
InsertPart(Int32,IEnumerable<Coordinate3D>) Method

ArcGIS.Core.Geometry Namespace > MultipartBuilder<T> Class > InsertPart Method : InsertPart(Int32,IEnumerable<Coordinate3D>) Method
0 based index. Specify 0 to insert at the beginning. Specify (CountParts - 1) or -1 to insert at the end.
An enumeration of coordinates.
Insert a part constructed from the enumeration of straight line segments constructed between the enumeration of coordinates to the MultipartBuilder before the specified index. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public virtual void InsertPart( 
   int beforePartIndex,
   IEnumerable<Coordinate3D> coordinates
)
Public Overloads Overridable Sub InsertPart( _
   ByVal beforePartIndex As Integer, _
   ByVal coordinates As IEnumerable(Of Coordinate3D) _
) 

Parameters

beforePartIndex
0 based index. Specify 0 to insert at the beginning. Specify (CountParts - 1) or -1 to insert at the end.
coordinates
An enumeration of coordinates.
Exceptions
ExceptionDescription
Incompatible spatial references.
This method or property must be called within the lambda passed to QueuedTask.Run.
coordinates is null.
Remarks
Specifying -1 for the beforePartIndex is equivalent to Add.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MultipartBuilder<T> Class
MultipartBuilder<T> Members
Overload List