WindowState Property

Applies To

Application object, DocumentWindow object.

Description

Returns or sets the state of the specified window. Can be one of the following PpWindowState constants: ppWindowMaximized, ppWindowMinimized, ppWindowMixed, or ppWindowNormal. Read/write Long.

Remarks

When the state of the window is ppWindowNormal, the window is neither maximized nor minimized.

Example

This example maximizes the active window.

Application.ActiveWindow.WindowState = ppWindowMaximized