setFocusedIndexAsync Method
In This Topic
Sets the index of focused image.
Syntax
var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);
var value; // Type: any
// Parameters
var value; // Type: number
var successFunc; // Type: function
value = instance.setFocusedIndexAsync(value, successFunc);
function setFocusedIndexAsync(
: number,
: Function
) : any;
Parameters
- value
- New index of focused image.
- successFunc
- Function that will be executed when the new focused image is displayed.
Exceptions
Exception | Description |
| Thrown if viewer is initializing. |
| Thrown if the previous method call has not been completed yet. |
| Thrown if argument has wrong type. |
| Thrown if index is less than zero or index is equal to or greater than image collection length. |
Browser Compatibility
See Also