VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation Namespace / WebAnnotationViewControllerJS type / indexOf Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
indexOf Method
In This Topic
Returns index of annotation collection if annotation view is found in annotation collection.
Syntax
var instance = new Vintasoft.Imaging.Annotation.WebAnnotationViewControllerJS(images);

var value; // Type: number

// Parameters
var annotation; // Type: WebAnnotationViewJS

value = instance.indexOf(annotation);

Parameters

annotation
WebAnnotationViewJS object that defines the annotation to search.

Return Value

Zero-based index of annotation collection if annotation view is found in annotation collection; -1 if annotation is not found.
Exceptions
ExceptionDescription
Thrown if argument has wrong type.
Browser Compatibility
56+
45+
11
See Also