Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
HitTest Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnContainer Class : HitTest Method



testPoint
The Point to be tested.
testPoint
The Point to be tested.
Retrieves the object at the specified coordinates.

Syntax

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

Parameters

testPoint
The Point to be tested.

Return Value

An AnnObjectBase 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: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

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