hitTest Method

Summary

Queries the specified location to determine if a test point is over the thumb or the CTR text.

Syntax
TypeScript
JavaScript
CTRTool.prototype.hitTest = function( 
   item, 
   x, 
   y 
) 
hitTest( 
   item: ImageViewerItem, 
   x: number, 
   y: number 
): boolean; 

Parameters

item

The item where the hit test is being performed.

x

The x-coordinate in question.

y

The y-coordinate in question.

Return Value

true if the (x, y) coordinates are on the drawable item. false, otherwise.

Remarks

The hit test only applies to the text box that contains the CTR measurement.

Requirements

Target Platforms

Help Version 22.0.2023.2.14
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.Medical Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.