VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI.UIElements Namespace / WebUiElementCollectionJS type / insertItem Methods / insertItem(number,Vintasoft.Imaging.UI.UIElements.WebUiElementJS) Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    insertItem(number,Vintasoft.Imaging.UI.UIElements.WebUiElementJS) Method
    In This Topic
    Inserts an item into collection at the specified index.
    Syntax
    var instance = new Vintasoft.Imaging.UI.UIElements.WebUiElementCollectionJS(items, readOnly);
    
    var value; // Type: any
    
    // Parameters
    var index; // Type: number
    var item; // Type: WebUiElementJS
    
    value = instance.insertItem(index, item);
    
    
    function insertItem(
    index
    The zero-based index at which item should be inserted.
    : number,
    item
    A WebUiElementJS to insert.
    : WebUiElementJS
    ) : any;

    Parameters

    index
    The zero-based index at which item should be inserted.
    item
    A WebUiElementJS to insert.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Thrown if index is less than zero or index is greater than collection length.
    Browser Compatibility
    56+
    45+
    11
    See Also