ProtectedViewWindow.WindowState Property (Word)

Returns or sets the state of the specified protected view window. Read/write WdWindowState.

Syntax

expression. WindowState

expression An expression that returns a 'ProtectedViewWindow' object.

Remarks

The wdWindowStateNormal constant indicates a window that is not maximized or minimized. The state of an inactive window cannot be set. Use theActivate method to activate a window prior to setting the window state.

Example

The following code example minimizes the active protected view window.

ActiveProtectedViewWindow.WindowState = wdWindowStateMinimize

See also

ProtectedViewWindow Object