Export (0) Print
Expand All

Window.WindowState Property

Gets or sets the state, such as minimized, normal, and so forth, of the window.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

vsWindowState WindowState { get; set; }
/** @property */
vsWindowState get_WindowState ()

/** @property */
void set_WindowState (/** @attribute InAttribute() */ vsWindowState plWindowState)

function get WindowState () : vsWindowState

function set WindowState (plWindowState : vsWindowState)

Property Value

A vsWindowState constant.

Because the WindowState property sets or returns whether a window is maximized, minimized, or normal, the environment should be in MDI mode for the following to work correctly.

Sub WindowStateExample()
   Dim win As Window
   win = DTE.ItemOperations.NewFile("General\Text File")
   MsgBox("Windowstate: " & (win.WindowState.ToString))
End Sub

Community Additions

ADD
Show:
© 2014 Microsoft