Share via


_Application.WindowState Property

Returns or sets the state of the specified document window or task window.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property WindowState As WdWindowState
    Get
    Set
'Usage
Dim instance As _Application
Dim value As WdWindowState

value = instance.WindowState

instance.WindowState = value
WdWindowState WindowState { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdWindowState

Remarks

The wdWindowStateNormal constant indicates a window that's 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.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace