VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Annotation Namespace / WebAnnotationViewCollectionJS type / set Method
The zero-based index of the annotation to replace.
New WebAnnotationViewJS at the specified index.
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:  object
    
    value = instance.set(index, annotation);
    function set( 
       index : number,
       annotation : object
    ) : any;

    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
    9
    5
    15
    5
    See Also