Window.WindowState Property

Definition

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

C++/CX
public:
 property EnvDTE::vsWindowState WindowState { EnvDTE::vsWindowState get(); void set(EnvDTE::vsWindowState value); };

Property Value

A vsWindowState constant.

Attributes

Examples

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

Remarks

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.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022