Leadtools.Controls Namespace > ImageViewerInteractiveModes Object : FindById Method |
function Leadtools.Controls.ImageViewerInteractiveModes.findById( id )
Parameter | Type | Description |
---|---|---|
id | int | ID to find |
Type | Description |
---|---|
ImageViewerInteractiveMode | The interactive mode found if any, null otherwise. |
This method will iterate through all the items in the collection and return the mode where Id is equal to id. If no such mode is found then it will return null.
var panZoom = new lt.Controls.ImageViewerPanZoomInteractiveMode(); panZoom = this._imageViewer.interactiveModes.findById(lt.Controls.ImageViewerInteractiveMode.panZoomModeId); var inertiaOptions = panZoom.inertiaScrollOptions; inertiaOptions.isEnabled = true; panZoom.inertiaScrollOptions = inertiaOptions;