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 |
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
- performing programmatic selection - for example using SelectGeometry() or SelectVertex(Int64, Int64)
- 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:
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.3 - 200.5 |
.NET | 200.3 - 200.5 |
.NET Windows | 200.3 - 200.5 |
.NET Android | 200.3 - 200.5 |
.NET iOS | 200.3 - 200.5 |
.NET Framework | 200.3 - 200.5 |
UWP | 200.3 - 200.5 |