LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

HitTest Method (AnnGroupObject)






The AnnPoint structure that contains the point to test.
Value that represents the size of the test point. This value makes the test point a square with an edge length of "buffer" * 2. This square is used to hit test.
Performs hit-testing on this AnnGroupObject object.
Syntax
public override object HitTest( 
   AnnPoint testPoint,
   int buffer
)
'Declaration
 
Public Overrides Function HitTest( _
   ByVal testPoint As AnnPoint, _
   ByVal buffer As Integer _
) As Object
'Usage
 
Dim instance As AnnGroupObject
Dim testPoint As AnnPoint
Dim buffer As Integer
Dim value As Object
 
value = instance.HitTest(testPoint, buffer)
public override object HitTest( 
   AnnPoint testPoint,
   int buffer
)
 function Leadtools.Annotations.AnnGroupObject.HitTest( 
   testPoint ,
   buffer 
)
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 length of "buffer" * 2. This square is used to hit test.

Return Value

The AnnObject.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 AnnObject.DefaultHitTestValue. To find the object inside the group that satisfies the hit-test, enumerate all of the objects in the group and call AnnObject.HitTest manually. For more information, refer to AnnObject.HitTest.
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

AnnGroupObject Class
AnnGroupObject Members

 

 


Products | Support | Contact Us | Copyright Notices

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