ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipointBuilderEx Class / InsertPoint Method / InsertPoint(Int32,MapPoint) Method
The index specifying where the point will be inserted. A negative value means that the point XY-values will be added to the end of the corresponding list. Otherwise, the value must be in the range [0, Coordinate2Ds.Count] inclusive.
The MapPoint to insert. It cannot be null.

In This Topic
    InsertPoint(Int32,MapPoint) Method
    In This Topic
    Insert a MapPoint at the specified index to the list of points.
    Syntax
    public void InsertPoint( 
       int index,
       MapPoint point
    )
    Public Overloads 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 XY-values will be added to the end of the corresponding list. Otherwise, the value must be in the range [0, Coordinate2Ds.Count] inclusive.
    point
    The MapPoint to insert. It cannot be null.
    Exceptions
    ExceptionDescription
    The input point is null.
    The point index is > Coordinate2Ds.Count.
    Remarks
    The XY-values of the point are inserted into the Coordinate2Ds 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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also