ArcGIS Pro 2.7 API Reference Guide
InsertPoint(Int32,MapPoint) Method

ArcGIS.Core.Geometry Namespace > Patch Class : InsertPoint(Int32,MapPoint) Method
The index at which the point will be inserted. Must be less or equal than Coords.Count. If the index is less than zero, the point will be added to end of the Coords list.
The point to insert.
Inserts a point at the specified index.
Syntax
public void InsertPoint( 
   int index,
   MapPoint point
)
Public Sub InsertPoint( _
   ByVal index As Integer, _
   ByVal point As MapPoint _
) 

Parameters

index
The index at which the point will be inserted. Must be less or equal than Coords.Count. If the index is less than zero, the point will be added to end of the Coords list.
point
The point to insert.
Exceptions
ExceptionDescription
The point index is less than zero or greater than Coords.Count.
The point is null or empty.
Remarks
If this patch has attributes Ms or IDs, then the attributes will be inserted also. M and ID will be taken from the point if it has them. Otherwise, default values will be inserted. Similarly, if this patch has attributes TextureCoords2D or Normals, then default values will be inserted. The default value is (0, 0) for 2D texture coordinates and (0, 0, 1) for normals.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Patch Class
Patch Members