Show / Hide Table of Contents

Property SelectedElement

SelectedElement

Gets the element that is currently selected in the GeometryEditor, or null if nothing is selected.

Declaration
public GeometryEditorElement SelectedElement { get; }
Property Value
Type Description
GeometryEditorElement

The element that is currently selected in the GeometryEditor, or null if nothing is selected.

Remarks

Clicking or tapping on the different visible elements of a Geometry in a view allows you to select and unselect them. This property returns a different type of GeometryEditorElement depending on what is selected - a vertex (GeometryEditorVertex), a mid-vertex (GeometryEditorMidVertex), a part of a polygon or polyline (GeometryEditorPart), or the entire geometry (GeometryEditorGeometry). You can change which selection interactions are allowed by using the InteractionConfiguration of the Tool.

You can also programmatically select specific vertices (SelectVertex(Int64, Int64)), mid-vertices (SelectMidVertex(Int64, Int64)), parts of polygons or polylines (SelectPart(Int64)), or the entire geometry (SelectGeometry()). You can clear the selection using ClearSelection().

The value of SelectedElement changes, raising the PropertyChanged event, when:

  • performing programmatic selection - for example using SelectGeometry() or SelectVertex(Int64, Int64) or SelectElementAtReticle()
  • performing interactive selection - for example selecting or unselecting a GeometryEditorElement
  • the location of the selected element changes - for example moving the selected element programmatically or interactively
  • performing edits - for example inserting a vertex interactively or deleting the selected element programmatically

It may also change when:

  • undoing or redoing edits - using Undo() or Redo()
  • stopping the geometry editor using Stop()

Applies to

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