setFocusedIndexByLocation Method
In This Topic
Changes the FocusedIndex property to the index of image, which is located in specified point.
Syntax
var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);
var value; // Type: boolean
// Parameters
var location; // Type: object
var disableAutoScrollToPage; // Type: boolean
value = instance.setFocusedIndexByLocation(location, disableAutoScrollToPage);
function setFocusedIndexByLocation(
: object,
: boolean
) : boolean;
Parameters
- location
- The point in the coordinate space of client area of image viewer.
- disableAutoScrollToPage
- Indicates that viewer should not scroll to the foused page automatically.
Return Value
Returns true if focused index is changed; otherwise, false.
Browser Compatibility
See Also