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