ArcGIS Pro 2.7 API Reference Guide
InsertPart(Int32,IEnumerable<Segment>) Method

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

Parameters

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

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

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