←Select platform

HitTest(Point) Method

Summary

Retrieves the object at the specified coordinates.

Syntax

C#
VB
C++
public AnnObject HitTest( 
   Point testPoint 
) 
  
Public Overloads Function HitTest( _ 
   ByVal testPoint As Point _ 
) As Leadtools.Windows.Annotations.AnnObject 
public: 
Leadtools.Windows.Annotations.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 VB) 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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Annotations Assembly