Click or drag to resize
GraphicsOverlayHitTestAsync Method (ViewBase, Rect, Int32)
Performs a Hit Test against the GraphicsOverlay at the given intersecting rectangle, relative to the upper left of the map.

Namespace: Esri.ArcGISRuntime.Controls
Assembly: Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 10.2.7.0 (10.2.7.1234)
Syntax
public Task<IEnumerable<Graphic>> HitTestAsync(
	ViewBase view,
	Rect intersectingRectangle,
	int maxHits
)

Parameters

view
Type: Esri.ArcGISRuntime.ControlsViewBase
The map view to perform the hit test on. The layer must be a member of the map in the map view.
intersectingRectangle
Type: System.WindowsRect
Intersecting rectangle relative to the upper left of the map.
maxHits
Type: SystemInt32
The maximum number of hits. Specify '1' for topmost and fast hittest.

Return Value

Type: TaskIEnumerableGraphic
All graphics under the screen point
Exceptions
See Also
Supported Platforms
This type is supported on the following ArcGIS Runtime .NET SDK platforms:
Windows Desktop
Windows Phone
Windows Store