Leadtools.Controls Namespace > ImageViewerInteractiveModes Object : EnableByIndex Method |
function Leadtools.Controls.ImageViewerInteractiveModes.enableByIndex( index )
Parameter | Type | Description |
---|---|---|
index | int | 0-based index of the mode to enable. -1 will disable all the items in the collection. |
This method will iterate through all the items in the collection and set IsEnabled to false all the items except the one at index.
For an example, refer to ImageViewerInteractiveModes.