InDesign2026
API 21.5.1.73
Collection of Assignment

Assignments

A collection of assignments.

Properties

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

Methods

→ Assignment

Returns the Assignment with the specified index.

index Number The index.
→ Assignment

Creates a new assignment.

filePath File The full path name of the new assignment.
versionComments? String The comment for this version.
forceSave? Boolean If true, forcibly saves a version.
withProperties? Object Initial values for properties of the new Assignment
→ Assignment

Returns any Assignment in the collection.

→ Number

Displays the number of elements in the Assignment.

→ Assignment[]

Returns every Assignment in the collection.

→ Assignment

Returns the first Assignment in the collection.

→ Assignment

Returns the Assignment with the specified index or name.

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

Returns the Assignment with the specified ID.

id Number The ID.
→ Assignment

Returns the Assignment with the specified name.

name String The name.
→ Assignment[]

Returns the Assignments within the specified range.

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

Returns the last Assignment in the collection.

→ Assignment

Returns the middle Assignment in the collection.

→ Assignment

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

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

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

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

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

Object of 1

Properties elsewhere that hold a Assignments.