←Select platform

HitTest Method (AnnContainer)

Summary

Retrieves the object at the specified coordinates.

Syntax

C#
VB
C++
  
Public Overridable Function HitTest( _ 
   ByVal testPoint As Leadtools.Annotations.AnnPoint, _ 
   ByVal buffer As Integer _ 
) As Leadtools.Annotations.AnnObject 

Parameters

testPoint
The AnnPoint to be tested.

buffer
Threshold buffer value.

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
The AnnPoint to be tested.

buffer
Threshold buffer value.

The AnnPoint to be tested.

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

Example

For an example, refer to AnnContainer.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations Assembly
Click or drag to resize