Show / Hide Table of Contents

Method SelectVertex

SelectVertex(long, long)

Selects the vertex with the specified indices.

Declaration
public void SelectVertex(long partIndex, long vertexIndex)
Parameters
Type Name Description
long partIndex

The index of the part that contains the vertex (point) to be selected, within the geometry editor's Multipart geometry. Use a value of 0 for Point and Multipoint (non-multipart geometries).

long vertexIndex

The index of the vertex (point) to be selected, within the given part of the geometry editor's Multipart geometry, or within the Multipoint geometry. Use a value of 0 for Point geometries.

Remarks

When a vertex is selected it can be edited while all other vertices of the geometry are unchanged. For example, you can move only the selected vertex interactively by dragging, or call MoveSelectedElement(MapPoint) or MoveSelectedElement(double, double) to move the selected vertex programmatically.

When a vertex is selected, a GeometryEditorVertex is returned from SelectedElement.

Exceptions
Type Condition
InvalidOperationException

The GeometryEditor must be started in order to select a vertex.

ArgumentOutOfRangeException

The given indices must exist within the current Geometry.

See Also
AllowVertexSelection
ClearSelection()
SelectMidVertex(long, long)
SelectGeometry()

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.8
.NET200.3 - 300.0
.NET Windows200.3 - 300.0
.NET Android200.3 - 300.0
.NET iOS200.3 - 300.0
.NET Framework200.3 - 200.8
UWP200.3 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.