ProtectedViewWindow.WindowState Property (Word)

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


expression. WindowState

expression An expression that returns a 'ProtectedViewWindow' object.


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


The following code example minimizes the active protected view window.

ActiveProtectedViewWindow.WindowState = wdWindowStateMinimize

See also

ProtectedViewWindow Object