Adobe InDesign CS2 (4.0) Object Model JS: MixedInks

InDesign CS2

Class

MixedInks

 A collection of mixed inks.

QuickLinks

add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

MixedInk add (inkList: any, inkPercentages: Array of number[, withProperties: Object])
Creates a new mixed ink swatch.

ParameterTypeDescription
inkList Array of Inks
MixedInkGroup
The inks to mix. Note: Must contain at least two process inks and one spot ink. Can accept: Array of Inks or MixedInkGroup.
inkPercentages Array of numberThe percent to use of each ink in the ink list. (Range: 0 to 100 for each ink)
withPropertiesObjectInitial values for properties of the new MixedInk (Optional)

MixedInk anyItem ()
Returns any MixedInk in the collection.

number count ()
Displays the number of elements in the MixedInk.

Array of MixedInk everyItem ()
Returns every MixedInk in the collection.

MixedInk firstItem ()
Returns the first MixedInk in the collection.

MixedInk item (index: any)
Returns the MixedInk with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

MixedInk itemByID (id: number)
Returns the MixedInk with the specified ID.

ParameterTypeDescription
idnumberThe ID.

MixedInk itemByName (name: string)
Returns the MixedInk with the specified name.

ParameterTypeDescription
namestringThe name.

Array of MixedInk itemByRange (from: any, to: any)
Returns the MixedInks within the specified range.

ParameterTypeDescription
fromLong
MixedInk
String
The MixedInk, index, or name at the beginning of the range. Can accept: MixedInk, Long or String.
toLong
MixedInk
String
The MixedInk, index, or name at the end of the range. Can accept: MixedInk, Long or String.

MixedInk lastItem ()
Returns the last MixedInk in the collection.

MixedInk middleItem ()
Returns the middle MixedInk in the collection.

MixedInk nextItem (obj: MixedInk)
Returns the MixedInk whose index follows the specified MixedInk in the collection.

ParameterTypeDescription
objMixedInkThe MixedInk whose index comes before the desired MixedInk.

MixedInk previousItem (obj: MixedInk)
Returns the MixedInk with the index previous to the specified index.

ParameterTypeDescription
objMixedInkThe index of the MixedInk that follows the desired MixedInk.

string toSource ()
Generates a string which, if executed, will return the MixedInk.

Element of

Application.mixedInks

Document.mixedInks

Jongware, 27-Jun-2010 v3.0.3dContents :: Index