VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI.VisualTools Namespace / WebInteractiveObjectCollectionJS type / setItem Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    setItem Method
    In This Topic
    Sets information about the specified interactive object.
    Syntax
    var instance = new Vintasoft.Imaging.UI.VisualTools.WebInteractiveObjectCollectionJS(typeOfElements);
    
    var value; // Type: any
    
    // Parameters
    var index; // Type: number
    var item; // Type: object
    
    value = instance.setItem(index, item);
    
    
    function setItem(
    index
    The zero-based index of interactive object, which should be changed.
    : number,
    item
    New interactive object at the specified index.
    : object
    ) : any;

    Parameters

    index
    The zero-based index of interactive object, which should be changed.
    item
    New interactive object at the specified index.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Thrown if interactive object is already used in other collection.
    Thrown if index is less than zero or index is equal to or greater than collection length.
    Browser Compatibility
    56+
    45+
    11
    See Also