Adobe InDesign CS5.5 (7.5) Object Model JS: PreflightRuleInstances

InDesign CS5.5

Class

PreflightRuleInstances

 A collection of preflight rule instances.

See also PreflightRuleInstance.

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

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: varies)
Returns the PreflightRuleInstance with the specified index or name.

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

Array of PreflightRuleInstance itemByRange (from: varies, to: varies)
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, 28-Apr-2012 v3.0.3iContents :: Index