Show / Hide Table of Contents

Method InsertPoint

InsertPoint(Int32, MapPoint)

Inserts a point into the part at the specified point index. Line segments will be added to connect the point to adjacent segments.

Declaration
public void InsertPoint(int pointIndex, MapPoint point)
Parameters
Type Name Description
System.Int32 pointIndex

Zero-based index of the point.

MapPoint point

The point to insert.

Remarks

The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection. The points in the part are the start and end points of segments. An existing segment connection the point before or after the point index is removed. Inserting a new point will insert new line segments connecting the adjacent points.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

InsertPoint(Int32, Double, Double)

Inserts a point specified by its x,y coordinate into the part at the specified point index. Line segments will be added to connect the point to adjacent segments.

Declaration
public void InsertPoint(int pointIndex, double x, double y)
Parameters
Type Name Description
System.Int32 pointIndex

Zero-based index of the point.

System.Double x

The x coordinate of the new point.

System.Double y

The y coordinate of the new point

Remarks

The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection. The points in the part are the start and end points of segments. An existing segment connection the point before or after the point index is removed. Inserting a new point will insert new line segments connecting the adjacent points.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

InsertPoint(Int32, Double, Double, Double)

Inserts a point specified by its x,y,z coordinate into the part at the specified point index. Line segments will be added to connect the point to adjacent segments.

Declaration
public void InsertPoint(int pointIndex, double x, double y, double z)
Parameters
Type Name Description
System.Int32 pointIndex

Zero-based index of the point.

System.Double x

The x coordinate of the new point.

System.Double y

The y coordinate of the new point

System.Double z

The z coordinate of the new point

Remarks

The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection. The points in the part are the start and end points of segments. An existing segment connection the point before or after the point index is removed. Inserting a new point will insert new line segments connecting the adjacent points.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.