Adobe InDesign CS4 (6.0) Object Model JS: PreflightRuleInstances

InDesign CS4

Class

PreflightRuleInstances

 A collection of preflight rule instances.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

PreflightRuleInstance [] (index: number)
Returns the PreflightRuleInstance with the specified index.

ParameterTypeDescription
indexnumberThe index.

any add (id: string[, withProperties: Object])
Adds a new preflight rule to the profile.

ParameterTypeDescription
idstringThe ID of the rule to be added
withPropertiesObjectInitial values for properties of the new PreflightRuleInstance (Optional)

PreflightRuleInstance anyItem ()
Returns any PreflightRuleInstance in the collection.

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

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

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

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

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

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objPreflightRuleInstanceThe PreflightRuleInstance whose index comes before the desired PreflightRuleInstance.

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

ParameterTypeDescription
objPreflightRuleInstanceThe index of the PreflightRuleInstance that follows the desired PreflightRuleInstance.

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

Element of

PreflightProfile.preflightRuleInstances

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