Windows

A collection of windows.

Methods

Windowadd ([withProperties:
Object])
Creates a new Window.

Parameter Type Description
withProperties Object Initial values for properties of the new Window (Optional)

WindowanyItem ()
Returns any Window in the collection.

number count ()
Displays the number of elements in the Window.

Array of WindoweveryItem ()
Returns every Window in the collection.

WindowfirstItem ()
Returns the first Window in the collection.

Windowitem (index:
any)
Returns the Window with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

WindowitemByName (name:
string)
Returns the Window with the specified name.

Parameter Type Description
name string The name.

Array of WindowitemByRange (from:
any, to:
any)
Returns the Windows within the specified range.

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

WindowlastItem ()
Returns the last Window in the collection.

WindowmiddleItem ()
Returns the middle Window in the collection.

WindownextItem (obj:
Window)
Returns the Window whose index follows the specified Window in the collection.

Parameter Type Description
obj Window The Window whose index comes before the desired Window.

WindowpreviousItem (obj:
Window)
Returns the Window with the index previous to the specified index.

Parameter Type Description
obj Window The index of the Window that follows the desired Window.

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

Element of:

Application.windows
Document.windows

Leave a Comment

Previous post:

Next post: