ArcGIS Pro 2.7 API Reference Guide
InsertParts Method

ArcGIS.Core.Geometry Namespace > MultipartBuilder<T> Class : InsertParts Method
0 based index. Specify 0 to insert at the beginning. Specify (CountParts - 1) or -1 to insert at the end.
n enumeration of parts built from an enumeration of segments.
Insert the parts constructed from the set of enumeration of line segments to the MultipartBuilder before the specified index. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public virtual void InsertParts( 
   int beforePartIndex,
   IEnumerable<IEnumerable<Segment>> parts
)
Public Overridable Sub InsertParts( _
   ByVal beforePartIndex As Integer, _
   ByVal parts As IEnumerable(Of 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.
parts
n enumeration of parts built from an enumeration of segments.
Exceptions
ExceptionDescription
Incompatible spatial references.
This method or property must be called within the lambda passed to QueuedTask.Run.
parts 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