Show / Hide Table of Contents

Method InsertVertex

InsertVertex(MapPoint)

Creates a new vertex at the specified location and inserts it after the currently selected element, or appends the point if there is nothing selected.

Declaration
public void InsertVertex(MapPoint point)
Parameters
Type Name Description
MapPoint point

The location of the new vertex.

Remarks

If Geometry is empty (IsEmpty is true), the given point is added as the initial vertex, and then selected. If nothing is selected (SelectedElement is null), the point is appended to the end of the Geometry, and then selected. If SelectedElement is the first vertex in a part of a Multipart, the given point is inserted before the currently selected vertex, and then selected.

If point is z-aware (HasZ = true), this method will change the Geometry to be z-aware, if it is not already.

If Geometry is a non-empty System.Drawing.Point, this method replaces the existing point with the given point and selects it.

See Also
AllowVertexCreation

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.7
.NET200.3 - 200.7
.NET Windows200.3 - 200.7
.NET Android200.3 - 200.7
.NET iOS200.3 - 200.7
.NET Framework200.3 - 200.7
UWP200.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.