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