InDesign2026
API 21.5.1.73
Collection of Panel

Panels

A collection of panels.

Properties

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

Methods

Panel

Returns the Panel with the specified index.

index Number The index.
Panel

Returns any Panel in the collection.

Number

Displays the number of elements in the Panel.

Panel[]

Returns every Panel in the collection.

Panel

Returns the first Panel in the collection.

Panel

Returns the Panel with the specified index or name.

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

Returns the Panel with the specified name.

name String The name.
Panel[]

Returns the Panels within the specified range.

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

Returns the last Panel in the collection.

Panel

Returns the middle Panel in the collection.

Panel

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

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

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

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

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

Object of 1

Properties elsewhere that hold a Panels.