←Select platform

HitTestStateCursor Property

Summary

Mouse cursor to use for the hit-test state of this ImageViewerInteractiveMode.

Syntax
C#
C++/CLI
public virtual Cursor HitTestStateCursor { get; set; } 
public:  
   virtual property System::Windows::Forms::Cursor^ HitTestStateCursor 
   { 
      System::Windows::Forms::Cursor^ get() 
      void set(System::Windows::Forms::Cursor^ value) 
   } 

Property Value

The mouse cursor to use for the hit-test state of this ImageViewerInteractiveMode. The default value is null.

Remarks

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.

The cursor is set into the ImageViewer control. Also, the cursor will be set in any controls added by the user to the InteractiveService.UserControls collection.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
Cursor interactiveModeCursor = null; 
if (_imageViewer.HitTestStateInteractiveMode != null) 
{ 
   interactiveModeCursor = _imageViewer.HitTestStateInteractiveMode.HitTestStateCursor; 
} 
 
if (interactiveModeCursor != null) 
   _imageViewer.Cursor = interactiveModeCursor; 
Requirements

Target Platforms

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

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