hitTestState Property

Summary

Indicates this mode hit-test state.

Syntax

JavaScript Syntax
Object.defineProperty(ImageViewerInteractiveMode.prototype, 'hitTestState', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
hitTestState: boolean; 

Property Value

true if this mode hit-test state is on, otherwise; false.

Remarks

HitTestState can be used to create an interactive mode that works over an area of interest in the viewer.

Example

Run the example. The cursor changes to a crosshair when it is over the red rectangles.

Start with the ImageViewer example, remove all the code inside the example function (search for the "// TODO: add example code here" comment) and insert the following code:

JavaScript Example
var interactiveModeCursor = ""; 
if (this._imageViewer.hitTestStateInteractiveMode != null) { 
   interactiveModeCursor = this._imageViewer.hitTestStateInteractiveMode.hitTestStateCursor; 
} 
 
if (interactiveModeCursor != null) 
   this._imageViewer.workingInteractiveMode.workingCursor = interactiveModeCursor; 

Requirements

Target Platforms

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly