LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
HitTest Method
See Also 
Leadtools.Annotations Namespace > AnnControlPoint Class : HitTest Method



testPoint
The AnnPoint to be tested.
centerPoint
The center point
converter
An AnnUnitConverter used to convert centerPoint to pixel coordinates.
buffer
Threshold buffer value.

The HitTest Method is available in LEADTOOLS Document and Medical Imaging toolkits.

testPoint
The AnnPoint to be tested.
centerPoint
The center point
converter
An AnnUnitConverter used to convert centerPoint to pixel coordinates.
buffer
Threshold buffer value.
Performs hit-testing on this AnnControlPoint.

Syntax

Visual Basic (Declaration) 
Public Overridable Function HitTest( _
   ByVal testPoint As AnnPoint, _
   ByVal centerPoint As AnnPoint, _
   ByVal converter As AnnUnitConverter, _
   ByVal buffer As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnControlPoint
Dim testPoint As AnnPoint
Dim centerPoint As AnnPoint
Dim converter As AnnUnitConverter
Dim buffer As Integer
Dim value As Boolean
 
value = instance.HitTest(testPoint, centerPoint, converter, buffer)
C# 
public virtual bool HitTest( 
   AnnPoint testPoint,
   AnnPoint centerPoint,
   AnnUnitConverter converter,
   int buffer
)
C++/CLI 
public:
virtual bool HitTest( 
   AnnPoint testPoint,
   AnnPoint centerPoint,
   AnnUnitConverter^ converter,
   int buffer
) 

Parameters

testPoint
The AnnPoint to be tested.
centerPoint
The center point
converter
An AnnUnitConverter used to convert centerPoint to pixel coordinates.
buffer
Threshold buffer value.

Return Value

true if hit-test is satisfied; otherwise, false.

Remarks

This method is called internally by the AnnEditDesigner.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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