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);
function set(
: number,
: WebAnnotationViewJS
) : any;
Parameters
- index
- The zero-based index of the annotation to replace.
- annotation
- New WebAnnotationViewJS at the specified index.
Exceptions
Exception | Description |
| 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
See Also