ArcGIS Pro 2.7 API Reference Guide
InsertPoint Method (MultipointBuilderEx)

ArcGIS.Core.Geometry Namespace > MultipointBuilderEx Class : InsertPoint Method
The index specifying where the point will be inserted. A negative value means that the point coordinates will be added to the end of the corresponding list. Otherwise, the value must be in the range [0, Coords.Count] inclusive.
The MapPoint to insert. It cannot be null or empty.
A convenience method to insert a MapPoint.
Syntax
public void InsertPoint( 
   int index,
   MapPoint point
)
Public Sub InsertPoint( _
   ByVal index As Integer, _
   ByVal point As MapPoint _
) 

Parameters

index
The index specifying where the point will be inserted. A negative value means that the point coordinates will be added to the end of the corresponding list. Otherwise, the value must be in the range [0, Coords.Count] inclusive.
point
The MapPoint to insert. It cannot be null or empty.
Exceptions
ExceptionDescription
The input point is null.
The point index is > Coords.Count.
Remarks
The XY-coordinates of the point are inserted into the Coords list. If the point property HasZ is true, and this builder property HasZ is true, then the Z-value of the point is inserted into the Zs list. The same is true for Ms and IDs. If the point is missing any of the attributes (Z, M, or ID) that are present in this builder, a default value is used. The default value for Z is zero, M is NaN, and ID is zero. If a point has an attribute that is missing in the builder, the attribute is ignored.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MultipointBuilderEx Class
MultipointBuilderEx Members