Udostępnij za pośrednictwem


Window.WindowState Property

Definition

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

public:
 property EnvDTE::vsWindowState WindowState { EnvDTE::vsWindowState get(); void set(EnvDTE::vsWindowState value); };
public:
 property EnvDTE::vsWindowState WindowState { EnvDTE::vsWindowState get(); void set(EnvDTE::vsWindowState value); };
[System.Runtime.InteropServices.DispId(109)]
public EnvDTE.vsWindowState WindowState { [System.Runtime.InteropServices.DispId(109)] get; [System.Runtime.InteropServices.DispId(109)] set; }
[<System.Runtime.InteropServices.DispId(109)>]
[<get: System.Runtime.InteropServices.DispId(109)>]
[<set: System.Runtime.InteropServices.DispId(109)>]
member this.WindowState : EnvDTE.vsWindowState with get, set
Public Property WindowState As vsWindowState

Property Value

A vsWindowState constant.

Attributes

Examples

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