Show / Hide Table of Contents

Method IdentifyGeometryEditorAsync

IdentifyGeometryEditorAsync(Point, Double)

Identifies all the elements in the GeometryEditor, at the given screen point.

Declaration
public async Task<IdentifyGeometryEditorResult> IdentifyGeometryEditorAsync(Point screenPoint, double tolerance)
Parameters
Type Name Description
System.Windows.Point screenPoint

The screen coordinates to identify the geometry editor elements.

System.Double tolerance

A radius in device-independent pixels (DIP) that specifies how precise the identify operation should be.

Returns
Type Description
System.Threading.Tasks.Task<IdentifyGeometryEditorResult>

A System.Threading.Tasks.Task of IdentifyGeometryEditorResult containing an array of GeometryEditorElement.

Remarks

Results are returned in the same order as the draw order of GeometryEditorElement on the GeometryEditor display; that is top-first order, with GeometryEditorVertex appearing drawn on-top of other elements.

As locations from user gestures are not always accurate to the exact pixel, you can define a tolerance for the identify operation. The tolerance parameter sets the radius of a circle, centered at the specified coordinates, in device-independent pixels (DIP). If the tolerance value is 0, identify performs the test at the specified coordinates. If it is greater than 0, identify tests completely within the circle. The maximum allowed value is 100 DIPs.

The default tolerance values used by the geometry editor for each input type are:

  • Mouse device - 5 DIPs.
  • Stylus device - 10 DIPs.
  • Touch - 15 DIPs.
  • Reticle tool - 5 DIPs.

This operation will fail if:

  • No GeometryEditor is attached to the MapView.
  • The attached GeometryEditor is stopped.

Applies to

Platforms and versions
TargetVersions
.NET Windows200.8
.NET Framework200.8
In This Article
Back to top Copyright © 2022 Esri.