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(Point) Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnContainer Class > HitTest Method : HitTest(Point) Method



testPoint
The System.Windows.Point to be tested.
testPoint
The System.Windows.Point to be tested.
Retrieves the object at the specified coordinates. Supported in Silverlight, Windows Phone 7

Syntax

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

Parameters

testPoint
The System.Windows.Point to be tested.

Return Value

An AnnObject that represents the object at the given screen coordinates; or null (Nothing in Visual Basic) if no object is at the tested location.

Example

For C#/VB examples, refer to AnnContainer.

Remarks

testPoint should be in physical coordinates.

If more than one object overlaps underneath the test point, the method will return the object on top of the Z-order.

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(Point) requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.