Window::WindowState Property
Visual Studio 2015
Gets or sets the state, such as minimized, normal, and so forth, of the window.
Assembly: EnvDTE (in EnvDTE.dll)
property vsWindowState WindowState { vsWindowState get(); void set(vsWindowState value); }
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
Show: