VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.UI.VisualTools Namespace / WebInteractiveObjectCollectionJS type / insertItem Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
insertItem Method
In This Topic
Inserts an interactive object into collection at the specified index.
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.insertItem(index, item);

Parameters

index
The zero-based index at which interactive object should be inserted.
item
Interactive object to insert.
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 greater than collection length.
Browser Compatibility
56+
45+
11
See Also