Show / Hide Table of Contents

Method DeleteSelectedElement

DeleteSelectedElement()

Deletes the selected element from the current Geometry.

Declaration
public void DeleteSelectedElement()
Remarks

To clear the selection, but leave the state of the Geometry unchanged, call ClearSelection() instead.

Exceptions
Type Condition
InvalidOperationException

The GeometryEditor must be started, and have a SelectedElement set, in order to delete that selected element. This exception is also thrown if the selected element is a GeometryEditorMidVertex.

See Also
SelectedElement
AllowDeletingSelectedElement

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.