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: