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

ArcGIS.Core.Geometry Namespace > MultipartBuilder<T> Class > InsertPart Method : InsertPart(Int32,IEnumerable<MapPoint>) Method
0 based index. Specify 0 to insert at the beginning. Specify (CountParts - 1) or -1 to insert at the end.
An enumeration of MapPoints.
Insert a part constructed from the enumeration of straight line segments constructed between the enumeration of MapPoints 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<MapPoint> points
)
Public Overloads Overridable Sub InsertPart( _
   ByVal beforePartIndex As Integer, _
   ByVal points As IEnumerable(Of MapPoint) _
) 

Parameters

beforePartIndex
0 based index. Specify 0 to insert at the beginning. Specify (CountParts - 1) or -1 to insert at the end.
points
An enumeration of MapPoints.
Exceptions
ExceptionDescription
Incompatible spatial references.
This method or property must be called within the lambda passed to QueuedTask.Run.
points 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