Adobe InDesign CS5 (7.0) Object Model JS: MixedInks

InDesign CS5

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 [] (index: number)
Returns the MixedInk with the specified index.

ParameterTypeDescription
indexnumberThe index.

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

ParameterTypeDescription
inkListArray 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.
inkPercentagesArray 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: varies)
Returns the MixedInk with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer 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: varies, to: varies)
Returns the MixedInks within the specified range.

ParameterTypeDescription
fromLong Integer
MixedInk
String
The MixedInk, index, or name at the beginning of the range. Can accept: MixedInk, Long Integer or String.
toLong Integer
MixedInk
String
The MixedInk, index, or name at the end of the range. Can accept: MixedInk, Long Integer 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, 20-Jun-2010 v3.0.3dContents :: Index