VintaSoft Twain .NET SDK 15.1: Документация для Веб разработчика
Vintasoft.Shared Namespace / WebImageCollectionJS type / swap Property
Синтаксис Exceptions Совместимость с браузерами Смотрите также
    swap Метод
    Swaps the specified images in the collection.
    Синтаксис
    var instance = new Vintasoft.Shared.WebImageCollectionJS();
    
    var value; // Type: any
    
    // Parameters
    var firstIndex; // Type: number
    var secondIndex; // Type: number
    
    value = instance.swap(firstIndex, secondIndex);
    
    

    Parameters

    firstIndex
    The index of first image that should be swapped.
    secondIndex
    The index of second image that should be swapped.
    Исключения
    ИсключениеОписание
    Thrown if argument has wrong type.
    Thrown if index is less than zero or index is equal or greater than collection length.
    Смотрите также