IsEnabled Property (original) (raw)

Summary

Indicates if this mode is currently enabled and can work.

Syntax

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.

Example

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();