VintaSoft Twain .NET SDK 15.1: Documentation for Web developer
Vintasoft.Shared Namespace / WebImageCollectionJS type / insert Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    insert Method
    In This Topic
    Inserts an image into collection at the specified index.
    Syntax
    var instance = new Vintasoft.Shared.WebImageCollectionJS();
    
    var value; // Type: any
    
    // Parameters
    var index; // Type: number
    var image; // Type: WebImageJS
    
    value = instance.insert(index, image);
    
    
    function insert(
    index
    The zero-based index at which image should be inserted.
    : number,
    image
    WebImageJS to insert.
    : WebImageJS
    ) : any;

    Parameters

    index
    The zero-based index at which image should be inserted.
    image
    WebImageJS to insert.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Thrown if index is less than zero or index is greater than collection length.
    Thrown if image already exists in collection.
    Browser Compatibility
    9
    See Also