←Select platform

IsEnabled Property

Summary

Indicates if this item is enabled.

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

Property Value

true if this item is enabled, otherwise; false. Default value is true.

Remarks

Inactive items (the value of IsEnabled is false) are rendered and participate in layout calculations but do not respond to interactive mode events.

For more information, refer Image Viewer Items, Image Viewer Layouts, Image Viewer Rendering and Image Viewer Interactive Modes.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
using Leadtools.Svg; 
 
_imageViewer.BeginUpdate(); 
_imageViewer.Items[0].IsEnabled = !_imageViewer.Items[0].IsEnabled; 
Debug.WriteLine(string.Format("_imageViewer.Items[0].IsEnabled = {0}", _imageViewer.Items[0].IsEnabled)); 
_imageViewer.EndUpdate(); 
Requirements

Target Platforms

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

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