InDesign2026
API 21.5.1.73
Collection of Window

Windows

A collection of windows.

Properties

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

Methods

Window

Returns the Window with the specified index.

index Number The index.
Window

Creates a new Window.

withProperties? Object Initial values for properties of the new Window
Window

Returns any Window in the collection.

Number

Displays the number of elements in the Window.

Window[]

Returns every Window in the collection.

Window

Returns the first Window in the collection.

Window

Returns the Window with the specified index or name.

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

Returns the Window with the specified name.

name String The name.
Window[]

Returns the Windows within the specified range.

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

Returns the last Window in the collection.

Window

Returns the middle Window in the collection.

Window

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

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

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

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

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

Object of 2

Properties elsewhere that hold a Windows.