Enables an interactive mode giving its ID in the collection.
public void EnableById(int id)
Public Sub EnableById(ByVal id As Integer)
public:void EnableById(int id)
id
The interactive mode ID to enable. If the ID is not found, then all items in the collection are disabled.
This method will iterate through all the items in the collection and set IsEnabled to false all the items except when Id is equal to id.
using Leadtools;using Leadtools.Controls;using Leadtools.Codecs;using Leadtools.Drawing;using LeadtoolsExamples.Common;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;_imageViewer.InteractiveModes.BeginUpdate();_imageViewer.InteractiveModes.Add(new ImageViewerPanZoomInteractiveMode { IsEnabled = true });_imageViewer.InteractiveModes.EnableById(ImageViewerInteractiveMode.PanZoomModeId);_imageViewer.InteractiveModes.EndUpdate();
Imports LeadtoolsImports Leadtools.ControlsImports Leadtools.CodecsImports Leadtools.DrawingImports Leadtools.ImageProcessingImports Leadtools.ImageProcessing.Color_imageViewer.InteractiveModes.BeginUpdate()Dim mode As New ImageViewerPanZoomInteractiveModemode.IsEnabled = True_imageViewer.InteractiveModes.Add(mode)_imageViewer.InteractiveModes.EnableById(ImageViewerInteractiveMode.PanZoomModeId)_imageViewer.InteractiveModes.EndUpdate()
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
