Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

EnableById Method

Show in webframe
Example 
The interactive mode ID to enable. If the ID is not found, then all items in the collection are disabled.
Enables an interactive mode giving its ID in the collection.
Syntax
 function Leadtools.Controls.ImageViewerInteractiveModes.enableById( 
   id 
)

Parameters

ParameterTypeDescription
idintThe interactive mode ID to enable. If the ID is not found, then all items in the collection are disabled.
Remarks

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.

Example
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();
See Also

Reference

ImageViewerInteractiveModes Object
ImageViewerInteractiveModes Members

Error processing SSI file