TrapPresets
A collection of trap presets.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
TrapPreset add( Object withProperties )
Creates a new TrapPreset.
Parameters
Type Name Description 
Number count()
Displays the number of elements in the TrapPreset.
TrapPreset item( Mixed index )
Returns the TrapPreset with the specified index or name.
Parameters
Type Name Description 
TrapPreset itemByName( String name )
Returns the TrapPreset with the specified name.
Parameters
Type Name Description 
TrapPreset itemByID( Number id )
Returns the TrapPreset with the specified ID.
Parameters
Type Name Description 
TrapPreset itemByRange( Mixed from, Mixed to )
Returns the TrapPresets within the specified range.
Parameters
Type Name Description 
TrapPreset firstItem()
Returns the first TrapPreset in the collection.
TrapPreset lastItem()
Returns the last TrapPreset in the collection.
TrapPreset middleItem()
Returns the middle TrapPreset in the collection.
TrapPreset previousItem( TrapPreset obj )
Returns the TrapPreset with the index previous to the specified index.
Parameters
Type Name Description 
TrapPreset nextItem( TrapPreset obj )
Returns the TrapPreset whose index follows the specified TrapPreset in the collection.
Parameters
Type Name Description 
TrapPreset anyItem()
Returns any TrapPreset in the collection.
TrapPreset everyItem()
Returns every TrapPreset in the collection.
String toSource()
Generates a string which, if executed, will return the TrapPreset.
TrapPreset []( Number index )
Returns the TrapPreset with the specified index.
Parameters
Type Name Description