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

ArcGIS.Core.Geometry Namespace > MultipointBuilder Class > Insert Method : Insert(Int32,IEnumerable<Segment>) Method
0 based index. Specify 0 to insert a point at the beginning. Specifying -1 is equivalent to Add.
The set of segments whose vertices will be inserted.
Inserts the vertices from an enumeration of segments to the point collection. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Overloads Sub Insert( _
   ByVal beforePointIndex As Integer, _
   ByVal segments As IEnumerable(Of Segment) _
) 

Parameters

beforePointIndex
0 based index. Specify 0 to insert a point at the beginning. Specifying -1 is equivalent to Add.
segments
The set of segments whose vertices will be inserted.
Exceptions
ExceptionDescription
Incompatible spatial references.
This method or property must be called within the lambda passed to QueuedTask.Run.
segments is null.
Remarks
If the end point of a segment is equal to the start point of the next segment, then that point is inserted only once.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MultipointBuilder Class
MultipointBuilder Members
Overload List