Leadtools.Controls Namespace > ImageViewerInteractiveMode Object : HitTestStateCursor Property |
get_hitTestStateCursor();
set_hitTestStateCursor(value);
Object.defineProperty('hitTestStateCursor');
Type | Description |
---|---|
string | The mouse cursor to use for the hit-test state of this ImageViewerInteractiveMode. The default value is null. |
HitTestState and HitTestStateCursor can be used with interactive modes that subscribe to the InteractiveService.Move event and indicate that the mousse cursor is over an area of interest by updating the state and changing the mouse cursor.
Mouse cursors are only supported by desktop browsers.
The values are standard HTML cursor strings. You can use a value like "crosshair" or "move". They will be set into the CSS style.cursor property of the HTML element. A value of null, means "do not change the cursor".
The cursor is set into the ImageViewer main div (ImageViewer.MainDiv) and foreground canvas (ImageViewer.ForeCanvas) elements. Also, the cursor will be set in any elements added by the user to the InteractiveService.UserControls collection.
For an example, refer to HitTestState.