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 > AnnCrossProductObject Class : HitTest Method




testPoint
An AnnPoint structure that contains the point to be tested.
buffer
Value that represents the size of the point to test.
Performs hit-testing on this AnnCrossProductObject 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 AnnCrossProductObject
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
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 DefaultHitTestValue, this method will return either FirstRulerHitTestObject or SecondRulerHitTestObject.

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