ArcGIS Runtime SDK for WPF - Library Reference
FindGraphicsInHostCoordinates(Rect,Int32) Method
See Also 
ESRI.ArcGIS.Client Namespace > GraphicsLayer Class > FindGraphicsInHostCoordinates Method : FindGraphicsInHostCoordinates(Rect,Int32) Method

intersectingRect
The System.Windows.Rect to use as the determination area.
maxHits
The maximum number of hits to return (defaults to only returning the topmost). In some scenarios setting this to a value greater than one could cause a performance hit.
Retrieves a set of Graphics that are located within a specified System.Windows.Rect of the applications coordinate space. Note the default value for maxHits is 1, returning the topmost graphic only.

Syntax

Visual Basic (Declaration) 
Public Overloads Function FindGraphicsInHostCoordinates( _
   ByVal intersectingRect As Rect, _
   Optional ByVal maxHits As Integer _
) As IEnumerable(Of Graphic)
C# 
public IEnumerable<Graphic> FindGraphicsInHostCoordinates( 
   Rect intersectingRect,
   int maxHits
)

Remarks

The intersection area must be given relative to the application host.

If the intersection includes a clustered graphic, the individual graphics that the cluster represents will be returned.

Parameters

intersectingRect
The System.Windows.Rect to use as the determination area.
maxHits
The maximum number of hits to return (defaults to only returning the topmost). In some scenarios setting this to a value greater than one could cause a performance hit.

Return Value

An enumerable set of Graphic objects that are determined to be located in the visual tree composition at the specified rectangle.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.