ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipointBuilderEx Class / InsertPoints Method / InsertPoints(Int32,IEnumerable<Segment>) Method
The index specifying where the points will be inserted. A negative value means that the points 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 Segment enumeration of which the vertices will be inserted.

In This Topic
    InsertPoints(Int32,IEnumerable<Segment>) Method
    In This Topic
    Insert the vertices of the segments in the enumeration to the list of points at the specified index.
    Syntax
    public void InsertPoints( 
       int index,
       IEnumerable<Segment> segments
    )
    Public Overloads Sub InsertPoints( _
       ByVal index As Integer, _
       ByVal segments As IEnumerable(Of Segment) _
    ) 

    Parameters

    index
    The index specifying where the points will be inserted. A negative value means that the points XY-values will be added to the end of the corresponding list. Otherwise, the value must be in the range [0, Coordinate2Ds.Count] inclusive.
    segments
    The Segment enumeration of which the vertices will be inserted.
    Remarks
    The XY-values of the points (vertices) 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 added to the end of 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, Windows 8.1

    See Also