EventCommands Type
A collection of EventCommand objects.
It is possible to retrieve a specific element by specifying its index in square brackets and obtain the number of elements in the collection with the method length. It is also possible to obtain the corresponding array with the method toArray.
Example of Use
var eventItem = ...
var eventCommands = eventItem.commands;
var eventCommand = eventCommands[0];
var count = eventCommands.length;
var eventCommandsArray = eventCommands.toArray();
In the above example:
eventCommandsis anEventCommandsobjecteventCommandis an EventCommand objecteventCommandsArrayis an array of EventCommand objects, on which it is possible to invoke all the methods that operate on arrays in JavaScript.