InDesign2026
API 21.5.1.73
Collection of Graphic

Graphics

A collection of imported graphics in any graphic file format (vector, metafile, or bitmap).

Properties

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

Methods

→ Graphic

Returns the Graphic with the specified index.

index Number The index.
→ Graphic

Returns any Graphic in the collection.

→ Number

Displays the number of elements in the Graphic.

→ Graphic[]

Returns every Graphic in the collection.

→ Graphic

Returns the first Graphic in the collection.

→ Graphic

Returns the Graphic with the specified index or name.

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

Returns the Graphic with the specified ID.

id Number The ID.
→ Graphic

Returns the Graphic with the specified name.

name String The name.
→ Graphic[]

Returns the Graphics within the specified range.

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

Returns the last Graphic in the collection.

→ Graphic

Returns the middle Graphic in the collection.

→ Graphic

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

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

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

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

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

Object of 38

Properties elsewhere that hold a Graphics.

Parameter of 1

Method parameters that accept a Graphics.