InDesign2026
API 21.5.1.73
Object

StoryWindow

A story window.

Window StoryWindow
Hierarchy

Document

StoryWindow

Properties

NameType AccessDescription
Number[] read/write The bounds of the window (specified in pixels) in the form [top, left, bottom, right].
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number readonly The index of the StoryWindow within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String readonly The name of the StoryWindow.
Document readonly The parent of the StoryWindow (a Document).
Object read/write A property that allows setting of several properties at the same time.
Object[] | Object[] | NothingEnum[]
read/write The selected object(s). Can also accept: Object or NothingEnum enumerator.
PageItem | NothingEnum
read/write The key object of the selection. Can also accept: NothingEnum enumerator.

Events

NameDescription
Dispatched after the StoryWindow becomes active. This event bubbles. This event is not cancelable.
Dispatched when the value of a property changes on this StoryWindow. This event bubbles. This event is not cancelable.
Dispatched when a StoryWindow is closing. Since the close has been committed, it can no longer be canceled. This event bubbles. This event is not cancelable.
Dispatched after a StoryWindow is opened. This event bubbles. This event is not cancelable.
Dispatched after an attribute on the active selection changes. This event bubbles. This event is not cancelable.
Dispatched after the active selection changes. This event bubbles. This event is not cancelable.
Dispatched before a StoryWindow is closed. This event bubbles. This event is cancelable.
Dispatched before the StoryWindow becomes inactive. This event bubbles. This event is not cancelable.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
void

Brings the object to the front.

void

Closes the StoryWindow.

StoryWindow[]

Resolves the object specifier, creating an array of object references.

void

Maximizes the window.

void

Minimizes the window.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
void

Restores the window.

void

Selects the specified object(s).

selectableItems Objects[] | NothingEnum[] | Object[] | SelectAll[] The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator.
existingSelection? SelectionOptions The selection status of the StoryWindow in relation to previously selected objects.
String

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

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a StoryWindow.

Parameter of 3

Method parameters that accept a StoryWindow.

Return 13

Methods that return a StoryWindow.