Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.14 KB

Word.ProtectedViewWindow.WindowState.md

File metadata and controls

46 lines (26 loc) · 1.14 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ProtectedViewWindow.WindowState property (Word)
vbawd10.chm231735302
vbawd10.chm231735302
Word.ProtectedViewWindow.WindowState
858036ac-b0f2-f312-81f2-d02ace00b2fb
06/08/2017
medium

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 the Activate 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

[!includeSupport and feedback]