Task.WindowState Property

Returns or sets the state of the specified 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 Task
Dim value As WdWindowState

value = instance.WindowState

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

Property Value

Type: Microsoft.Office.Interop.Word.WdWindowState

Remarks

WdWindowState can be one of these WdWindowState constants.

wdWindowStateMaximize

wdWindowStateNormal

wdWindowStateMinimize

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

Task Interface

Task Members

Microsoft.Office.Interop.Word Namespace