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

    Parameters

    firstIndex
    Zero-based index of the first annotation view.
    secondIndex
    Zero-based index of the second annotation view.
    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