Instance Properties
| Name | Description | Access |
|---|---|---|
| length | number The number of objects in the collection. | read-only |
Methods
| add( | [name] [, swatchList] [, withProperties]) |
→ ColorGroup |
| anyItem( | ) |
→ ColorGroup |
| count( | ) |
→ number |
| everyItem( | ) |
→ ColorGroup |
| firstItem( | ) |
→ ColorGroup |
| item( | index) |
→ ColorGroup |
| itemByID( | id) |
→ ColorGroup |
| itemByName( | name) |
→ ColorGroup |
| itemByRange( | from, to) |
→ ColorGroup |
| lastItem( | ) |
→ ColorGroup |
| middleItem( | ) |
→ ColorGroup |
| nextItem( | obj) |
→ ColorGroup |
| previousItem( | obj) |
→ ColorGroup |
| toSource( | ) |
→ string |
-
add( [name] [, swatchList] [, withProperties])→ ColorGroup -
Creates a new ColorGroup
namestring The color group name (Optional) swatchListArray<Swatch> The swatches to add in color group. (Optional) withPropertiesObject Initial values for properties of the new ColorGroup (Optional) -
anyItem( )→ ColorGroup -
Returns any ColorGroup in the collection.
-
count( )→ number -
Displays the number of elements in the ColorGroup.
-
everyItem( )→ ColorGroup -
Returns every ColorGroup in the collection.
-
firstItem( )→ ColorGroup -
Returns the first ColorGroup in the collection.
-
item( index)→ ColorGroup -
Returns the ColorGroup with the specified index or name.
indexThe index or name. Can accept: Long Integer or String. -
itemByID( id)→ ColorGroup -
Returns the ColorGroup with the specified ID.
idnumber The ID. -
itemByName( name)→ ColorGroup -
Returns the ColorGroup with the specified name.
namestring The name. -
itemByRange( from, to)→ ColorGroup -
Returns the ColorGroups within the specified range.
fromThe ColorGroup, index, or name at the beginning of the range. Can accept: ColorGroup, Long Integer or String. toThe ColorGroup, index, or name at the end of the range. Can accept: ColorGroup, Long Integer or String. -
lastItem( )→ ColorGroup -
Returns the last ColorGroup in the collection.
-
middleItem( )→ ColorGroup -
Returns the middle ColorGroup in the collection.
-
nextItem( obj)→ ColorGroup -
Returns the ColorGroup whose index follows the specified ColorGroup in the collection.
objColorGroup The ColorGroup whose index comes before the desired ColorGroup. -
previousItem( obj)→ ColorGroup -
Returns the ColorGroup with the index previous to the specified index.
objColorGroup The index of the ColorGroup that follows the desired ColorGroup. -
toSource( )→ string -
Generates a string which, if executed, will return the ColorGroup.