VintaSoft Imaging .NET SDK 12.5: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationCommentCollectionJS type / insert Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    insert Method
    In This Topic
    Inserts an annotation comment to the collection.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationCommentCollectionJS(parent);
    
    var value; // Type: any
    
    // Parameters
    var index; // Type: number
    var comment; // Type: WebAnnotationCommentJS
    
    value = instance.insert(index, comment);
    
    
    function insert(
    index
    The zero-based index at which the annotation comment should be inserted.
    : number,
    comment
    An annotation comment that should be inserted.
    : WebAnnotationCommentJS
    ) : any;

    Parameters

    index
    The zero-based index at which the annotation comment should be inserted.
    comment
    An annotation comment that should be inserted.
    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 comment already exists in collection.
    Browser Compatibility
    56+
    45+
    11
    See Also