LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
HitTest(Rect) Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnContainer Class > HitTest Method : HitTest(Rect) Method



testRect
The System.Windows.Rect to be tested.
testRect
The System.Windows.Rect to be tested.
Retrieves the collection of objects that have boundaries inside a specifiec value. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Overloads Public Function HitTest( _
   ByVal testRect As Rect _
) As AnnObjectCollection
Visual Basic (Usage)Copy Code
Dim instance As AnnContainer
Dim testRect As Rect
Dim value As AnnObjectCollection
 
value = instance.HitTest(testRect)
C# 
public AnnObjectCollection HitTest( 
   Rect testRect
)
C++/CLI 
public:
AnnObjectCollection^ HitTest( 
   Rect testRect
) 

Parameters

testRect
The System.Windows.Rect to be tested.

Return Value

An AnnObjectCollection that contains the objects that have boundaries inside testRect.

Example

For C#/VB examples, refer to AnnContainer.

Remarks

testRect should be in physical coordinates.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

HitTest(Rect) requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.