Adobe InDesign CS4 (6.0) Object Model JS: MixedInk

InDesign CS4

Class

MixedInk

 A mixed ink swatch. Base Class: Swatch

QuickLinks

duplicate, extractLabel, getElements, insertLabel, merge, remove, toSource, toSpecifier

Hierarchy

Application | Document
Swatch
MixedInk

Properties

PropertyTypeAccessDescription
baseColorMixedInkGroup readonlyThe mixed ink group that a mixed ink swatch is based on.
idnumber readonlyThe unique ID of the MixedInk.
indexnumber readonlyThe index of the MixedInk within its containing object.
inkListArray of Ink readonlyThe component inks.
inkPercentagesArray of number r/wThe array of tint percentages for inks in the ink list. Note: Specify a value for each ink.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
labelstring r/wA property that can be set to any string.
modelColorModel:
ColorModel.SPOT
ColorModel.PROCESS
ColorModel.REGISTRATION
ColorModel.MIXEDINKMODEL
r/wThe color model.
namestring r/wThe name of the MixedInk.
parentApplication
Document
readonlyThe parent of the MixedInk (a Application or Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
spaceColorSpace:
ColorSpace.RGB
ColorSpace.CMYK
ColorSpace.LAB
ColorSpace.MIXEDINK
r/wThe color space.

Methods

Instances

MixedInk duplicate ()
Duplicates the MixedInk.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

Array of MixedInk getElements ()
Resolves the object specifier, creating an array of object references.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

Swatch merge (with: any)
Merges the specified swatches with the swatch.

ParameterTypeDescription
withArray of Swatches
String
Swatch
The swatches to merge. Can accept: Array of Swatches, Swatch or String.

void remove ([replacingWith: Swatch])
Deletes the swatch.

ParameterTypeDescription
replacingWithSwatchThe swatch to apply in place of the deleted swatch. (Optional)

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

string toSpecifier ()
Retrieves the object specifier.

Element of

GradientStop.stopColor

Used in:

array of MixedInk MixedInks.itemByRange (from: any, to: any)

MixedInk MixedInks.nextItem (obj: MixedInk)

MixedInk MixedInks.previousItem (obj: MixedInk)

Return

MixedInk MixedInk.duplicate ()

Array of MixedInk MixedInk.getElements ()

MixedInk MixedInks.[] (index: number)

MixedInk MixedInks.add (inkList: any, inkPercentages: Array of number[, withProperties: Object])

MixedInk MixedInks.anyItem ()

Array of MixedInk MixedInks.everyItem ()

MixedInk MixedInks.firstItem ()

MixedInk MixedInks.item (index: any)

MixedInk MixedInks.itemByID (id: number)

MixedInk MixedInks.itemByName (name: string)

Array of MixedInk MixedInks.itemByRange (from: any, to: any)

MixedInk MixedInks.lastItem ()

MixedInk MixedInks.middleItem ()

MixedInk MixedInks.nextItem (obj: MixedInk)

MixedInk MixedInks.previousItem (obj: MixedInk)

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