Show / Hide Table of Contents

Method SelectElementAtReticle

SelectElementAtReticle()

Selects an element at the current position of the reticle.

Declaration
public bool SelectElementAtReticle()
Returns
Type Description
bool

true if there is a vertex or mid-vertex under the reticle, which is now selected, false otherwise.

Remarks

If called when the reticle is not over a vertex or mid-vertex this will return false even if a SelectedElement already exists. Selection will not be cleared.

If called when a PickedUpElement exists this will return false and the selection will not be changed.

If called when the reticle is over a geometry segment or fill, this will return false and not select anything and existing selections will not be cleared.

Exceptions
Type Condition
InvalidOperationException

The ProgrammaticReticleTool must be attached to a GeometryEditor, the GeometryEditor must be started, the GeometryEditor must be attached to a MapView, and the ProgrammaticReticleTool must not be attached to more than one GeometryEditor where two or more of the geometry editors are attached to map views.

Applies to

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