enableByIndex Method

Summary

Enables an interactive mode giving its index in the collection.

Syntax
TypeScript
JavaScript
ImageViewerInteractiveModes.prototype.enableByIndex = function( 
   index 
) 
enableByIndex( 
   index: number 
): void; 

Parameters

index

0-based index of the mode to enable. -1 will disable all the items in the collection.

Remarks

This method will iterate through all the items in the collection and set IsEnabled to false all the items except the one at index.

Example

For an example, refer to ImageViewerInteractiveModes.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.