Show / Hide Table of Contents

Method SelectMidVertex

SelectMidVertex(long, long)

Selects the mid-vertex with the specified indices.

Declaration
public void SelectMidVertex(long partIndex, long segmentIndex)
Parameters
Type Name Description
long partIndex

The index of the part in the geometry editor's Multipart geometry that contains the mid-vertex to be selected. Use a value of 0 for non-multipart geometry types - Point and Multipoint.

long segmentIndex

The index of segment that the mid-vertex to be selected lies on, 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

Mid-vertices do not exist in the Geometry. They exist only in the display to serve as a visual cue that new vertices can be inserted between existing vertices. Since they do not exist in the geometry, mid-vertices cannot be programmatically moved or deleted. They can be used to insert a new vertex interactively.

When a mid-vertex is selected, a GeometryEditorMidVertex is returned from SelectedElement.

Exceptions
Type Condition
InvalidOperationException

The GeometryEditor must be started in order to select a mid-vertex. -OR- Mid-vertices are not shown for the current GeometryType and therefore cannot be selected.

ArgumentOutOfRangeException

The given indices must be within range for the current Geometry.

See Also
AllowMidVertexSelection
ClearSelection()
SelectVertex(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.