LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

HitTest(Point) Method






The System.Windows.Point to be tested.
Retrieves the object at the specified coordinates. .NET support Silverlight support
Syntax
public AnnObject HitTest( 
   Point testPoint
)
'Declaration
 
Public Overloads Function HitTest( _
   ByVal testPoint As Point _
) As AnnObject
'Usage
 
Dim instance As AnnContainer
Dim testPoint As Point
Dim value As AnnObject
 
value = instance.HitTest(testPoint)
public AnnObject HitTest( 
   Point testPoint
)
 function Leadtools.Windows.Annotations.AnnContainer.HitTest(Point)( 
   testPoint 
)
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.
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.

Example

For C#/VB examples, refer to AnnContainer.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnContainer Class
AnnContainer Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.