VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI.UIElements Namespace / WebUiElementCollectionJS type / swapItems Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    swapItems Method
    In This Topic
    Swaps two items in the collection.
    Syntax
    var instance = new Vintasoft.Imaging.UI.UIElements.WebUiElementCollectionJS(items, readOnly);
    
    var value; // Type: any
    
    // Parameters
    var firstIndex; // Type: number
    var secondIndex; // Type: number
    
    value = instance.swapItems(firstIndex, secondIndex);
    
    
    function swapItems(
    firstIndex
    Zero-based index of the first item.
    : number,
    secondIndex
    Zero-based index of the second item.
    : number
    ) : any;

    Parameters

    firstIndex
    Zero-based index of the first item.
    secondIndex
    Zero-based index of the second item.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Thrown if index is less than zero or index is equal to or greater than collection length.
    Browser Compatibility
    56+
    45+
    11
    See Also