The HitTest Method is available in LEADTOOLS Document and Medical Imaging toolkits.
- testPoint
- An AnnPoint structure that contains the point to be tested.
- buffer
- Value that represents the size of the point to test.
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 AnnCrossProductObject Dim testPoint As AnnPoint Dim buffer As Integer Dim value As Object value = instance.HitTest(testPoint, buffer) |
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.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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7