VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation Namespace / WebAnnotationViewCollectionJS type / set Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
set Method
In This Topic
Replaces annotation at the specified index.
Syntax
var instance = new Vintasoft.Imaging.Annotation.WebAnnotationViewCollectionJS();

var value; // Type: any

// Parameters
var index; // Type: number
var annotation; // Type: WebAnnotationViewJS

value = instance.set(index, annotation);

Parameters

index
The zero-based index of the annotation to replace.
annotation
New WebAnnotationViewJS at the specified index.
Exceptions
ExceptionDescription
Thrown if arguments have wrong types.
Thrown if index is less than zero or index is equal to or greater than collection length.
Thrown if annotation already exists in collection.
Browser Compatibility
56+
45+
11
See Also