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




testPoint
The AnnPoint structure that contains the point to test.
buffer
Value that represents the size of the test point. This value makes the test point a square with an edge lenght of "buffer" * 2. This square is used to hit test.
Performs hit-testing on this AnnGroupObject object.

Syntax

Visual Basic (Declaration) 
Overrides Public Function HitTest( _
   ByVal testPoint As AnnPoint, _
   ByVal buffer As Integer _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As AnnGroupObject
Dim testPoint As AnnPoint
Dim buffer As Integer
Dim value As Object
 
value = instance.HitTest(testPoint, buffer)
C# 
public override object HitTest( 
   AnnPoint testPoint,
   int buffer
)
Managed Extensions for C++ 
public: Object* HitTest( 
   AnnPoint testPoint,
   int buffer
) override 
C++/CLI 
public:
Object^ HitTest( 
   AnnPoint testPoint,
   int buffer
) override 

Parameters

testPoint
The AnnPoint structure that contains the point to test.
buffer
Value that represents the size of the test point. This value makes the test point a square with an edge lenght of "buffer" * 2. This square is used to hit test.

Return Value

The DefaultHitTestValue if any annotation object within the group satisfies the hit test; or null (Nothing in Visual Basic) if the test point does not hit an annotation object in this AnnGroupObject object.

Remarks

The AnnGroupObject will perform hit-testing on all the objects in the group. If any annotation object within the group satisfies the hit test, the return value will be DefaultHitTestValue. To find the object inside the group that satisfies the hit-test, enumerate all of the objects in the group and call HitTest manually. For more information, refer to HitTest.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features