Window Object

The Window object is the base object for several objects (PlotWindow, WksWindow, and GridWindow). The properties and methods of this object are available to any object derived from the Window object.

The following table provides all properties of the Window object :

Property

Description

Active

Returns the active state of the window. This is a read-only property.

Application

Returns the Application object. Its a read-only property.

Caption*

Returns the caption of the window. It is a read-only property.

Document

Returns the document associated with this window. It is a read only property.

Height

Returns/sets the height of the window.

Index

Returns the 1-based index of this window in the Application windows collection. It is a read only property.

Left

Returns/sets the coordinate for the left edge of the window.

Parent

Returns the parent object. It is a read only property.

Top

Returns/sets the coordinate for the top edge of the window.

Type

Returns the type of this window. It is a read only property.

Width

Returns/sets the width of the window.

WindowState

Returns/sets the state of the window.

The following table provides all the methods of the Window object :

Method

Description

Activate

Activates the window.

Close

Closes the window.

*default property

Example

This script displays all the methods and properties in the Window object.