Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the state, such as minimized, normal, and so forth, of the window.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Property WindowState As vsWindowState
'Usage
Dim instance As Window
Dim value As vsWindowState
value = instance.WindowState
instance.WindowState = value
vsWindowState WindowState { get; set; }
property vsWindowState WindowState {
vsWindowState get ();
void set (vsWindowState value);
}
function get WindowState () : vsWindowState
function set WindowState (value : vsWindowState)
Property Value
Type: EnvDTE.vsWindowState
A vsWindowState constant.
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.
Examples
Sub WindowStateExample()
Dim win As Window
win = DTE.ItemOperations.NewFile("General\Text File")
MsgBox("Windowstate: " & (win.WindowState.ToString))
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.