InDesign2026
API 21.5.1.73
Collection of PreflightRule

PreflightRules

A collection of preflight rules.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ PreflightRule

Returns the PreflightRule with the specified index.

index Number The index.
→ PreflightRule

Returns any PreflightRule in the collection.

→ Number

Displays the number of elements in the PreflightRule.

→ PreflightRule[]

Returns every PreflightRule in the collection.

→ PreflightRule

Returns the first PreflightRule in the collection.

→ PreflightRule

Returns the PreflightRule with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ PreflightRule

Returns the PreflightRule with the specified ID.

id Number The ID.
→ PreflightRule

Returns the PreflightRule with the specified name.

name String The name.
→ PreflightRule[]

Returns the PreflightRules within the specified range.

from LongInteger | PreflightRule | String The PreflightRule, index, or name at the beginning of the range. Can accept: PreflightRule, Long Integer or String.
to LongInteger | PreflightRule | String The PreflightRule, index, or name at the end of the range. Can accept: PreflightRule, Long Integer or String.
→ PreflightRule

Returns the last PreflightRule in the collection.

→ PreflightRule

Returns the middle PreflightRule in the collection.

→ PreflightRule

Returns the PreflightRule whose index follows the specified PreflightRule in the collection.

obj PreflightRule The PreflightRule whose index comes before the desired PreflightRule.
→ PreflightRule

Returns the PreflightRule with the index previous to the specified index.

obj PreflightRule The index of the PreflightRule that follows the desired PreflightRule.
→ String

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

Object of 1

Properties elsewhere that hold a PreflightRules.