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

HitTest Method (AnnCrossProductObject)






An AnnPoint structure that contains the point to be tested.
Value that represents the size of the point to test.
Performs hit-testing on this AnnCrossProductObject 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 AnnCrossProductObject
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.AnnCrossProductObject.HitTest( 
   testPoint ,
   buffer 
)
public:
Object^ HitTest( 
   AnnPoint testPoint,
   int buffer
) override 

Parameters

testPoint
An AnnPoint structure that contains the point to be tested.
buffer
Value that represents the size of the point to test.

Return Value

This method returns FirstRulerHitTestObject or SecondRulerHitTestObject; or null (Nothing in Visual Basic) if the test point does not hit this AnnCrossProductObject object.
Remarks
The AnnCrossProductObject class overrides this method to fine-tune the return value for hit-testing. Instead of simply returning the default AnnObject.DefaultHitTestValue, this method will return either FirstRulerHitTestObject or SecondRulerHitTestObject.
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

AnnCrossProductObject Class
AnnCrossProductObject Members

 

 


Products | Support | Contact Us | Copyright Notices

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