←Select platform

IsEnabled Property

Summary

Indicates if this mode is currently enabled and can work.

Syntax
C#
C++/CLI
public virtual bool IsEnabled { get; set; } 
public:  
   virtual property bool IsEnabled 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true if this mode is currently enabled and can work, otherwise; false.

Remarks

IsEnabled must be set to true for an interactive mode to work. When multiple interactive modes are added to the viewer, the IsEnabled property can be used to designate the current "active" one that can perform actions. For more information, refer to Image Viewer Interactive Modes.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
_imageViewer.InteractiveModes.BeginUpdate(); 
_imageViewer.InteractiveModes.Add(new ImageViewerFloaterInteractiveMode 
{ 
   ZoomKeyModifier = Keys.None, 
   IsEnabled = true, 
   FloaterOpacity = 0.5 
}); 
_imageViewer.InteractiveModes.Add(new ImageViewerAddRegionInteractiveMode 
{ 
   IsEnabled = true, 
   Shape = ImageViewerRubberBandShape.Rectangle 
}); 
_imageViewer.InteractiveModes.Add(new ImageViewerFloaterInteractiveMode 
{ 
   ZoomKeyModifier = Keys.None, 
   IsEnabled = true, 
   FloaterOpacity = 0.5 
}); 
 
_imageViewer.InteractiveModes.EndUpdate(); 
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.