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