Enables an interactive mode giving its ID in the collection.
ImageViewerInteractiveModes.prototype.enableById = function(id)
enableById(id: number): void;
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.
this._imageViewer.interactiveModes.beginUpdate();
var panZoomMode = new lt.Controls.ImageViewerPanZoomInteractiveMode;
panZoomMode.isEnabled = true;
this._imageViewer.interactiveModes.add(panZoomMode);
this._imageViewer.interactiveModes.enableById(lt.Controls.ImageViewerInteractiveMode.panZoomModeId);
this._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