VintaSoft Twain .NET SDK 15.1: Documentation for Web developer
Vintasoft.Shared Namespace / WebImageCollectionJS type / swap Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    swap Method
    In This Topic
    Swaps the specified images in the collection.
    Syntax
    var instance = new Vintasoft.Shared.WebImageCollectionJS();
    
    var value; // Type: any
    
    // Parameters
    var firstIndex; // Type: number
    var secondIndex; // Type: number
    
    value = instance.swap(firstIndex, secondIndex);
    
    
    function swap(
    firstIndex
    The index of first image that should be swapped.
    : number,
    secondIndex
    The index of second image that should be swapped.
    : number
    ) : any;

    Parameters

    firstIndex
    The index of first image that should be swapped.
    secondIndex
    The index of second image that should be swapped.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Thrown if index is less than zero or index is equal or greater than collection length.
    Browser Compatibility
    9
    See Also