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 ) |
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.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8