InDesign2026
API 21.5.1.73
Object

RuleDataObject

A preflight rule data object.

Hierarchy

PreflightProfileRule | PreflightRuleInstance

RuleDataObject

Properties

NameType AccessDescription
RuleDataType
readonly The type of data.
Boolean[] | Booleans[] | Booleans[] | LongInteger[] | LongIntegers[] | LongIntegers[] | Object[] | Objects[] | Real[] | Reals[] | Reals[] | ShortInteger[] | ShortIntegers[] | ShortIntegers[] | String[] | Strings[] | Arrays of Arrays of Strings[] | Objects[] read/write The value for this data object. Can return: String, Real, Long Integer, Short Integer, Boolean, Object or Array of Strings, Reals, Long Integers, Short Integers, Booleans, Objects or Arrays of Array of Arrays of Array of Strings, Reals, Long Integers, Short Integers, Booleans or Objects.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
String readonly The ID for this rule data object.
Number readonly The index of the RuleDataObject within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String readonly The name of the RuleDataObject.
PreflightProfileRule | PreflightRuleInstance readonly The parent of the RuleDataObject (a PreflightProfileRule or PreflightRuleInstance).
Object read/write A property that allows setting of several properties at the same time.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
RuleDataObject[]

Resolves the object specifier, creating an array of object references.

void

Deletes the RuleDataObject.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Generates a string which, if executed, will return the RuleDataObject.

String

Retrieves the object specifier.

Object of 3

Properties elsewhere that hold a RuleDataObject.

Parameter of 3

Method parameters that accept a RuleDataObject.

Return 14

Methods that return a RuleDataObject.