InDesign2026
API 21.5.1.73
Collection of Ink

Inks

A collection of inks.

Properties

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

Methods

Ink

Returns the Ink with the specified index.

index Number The index.
Ink

Returns any Ink in the collection.

Number

Displays the number of elements in the Ink.

Ink[]

Returns every Ink in the collection.

Ink

Returns the first Ink in the collection.

Ink

Returns the Ink with the specified index or name.

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

Returns the Ink with the specified ID.

id Number The ID.
Ink

Returns the Ink with the specified name.

name String The name.
Ink[]

Returns the Inks within the specified range.

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

Returns the last Ink in the collection.

Ink

Returns the middle Ink in the collection.

Ink

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

obj Ink The Ink whose index comes before the desired Ink.
Ink

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

obj Ink The index of the Ink that follows the desired Ink.
String

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

Object of 2

Properties elsewhere that hold a Inks.

Parameter of 1

Method parameters that accept a Inks.