Window.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)

Usage

Dim window1 As Window

Dim returnValue As WdWindowState
returnValue = window1.WindowState

Dim sampleValue As WdWindowState
window1.WindowState = sampleValue

Syntax

Property WindowState() As WdWindowState
WdWindowState WindowState {get; set;}
property WdWindowState^ WindowState{
    WdWindowState^ get();
    Void set(WdWindowState^);
}
public WdWindowState get_WindowState();
public void set_WindowState(WdWindowState);
function get WindowState() : WdWindowState;
function set WindowState(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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Window Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Window Members