VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Annotation Namespace / WebAnnotationViewCollectionJS type / insert Method
Zero-based index in the collection at which the annotation view must be inserted.
WebAnnotationViewJS to insert.
In This Topic
    insert Method
    In This Topic
    Inserts annotation view to the collection.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.WebAnnotationViewCollectionJS();
    var value; // Type: any
    
    // Parameters
    var index; // Type:  number
    var annotation; // Type:  object
    
    value = instance.insert(index, annotation);
    function insert( 
       index : number,
       annotation : object
    ) : any;

    Parameters

    index
    Zero-based index in the collection at which the annotation view must be inserted.
    annotation
    WebAnnotationViewJS to insert.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Thrown if index is less than zero or index is greater than collection length.
    Thrown if annotation already exists in collection.
    Browser Compatibility
    9
    5
    15
    5
    See Also