Share via


DTE2.DisplayMode Property

Gets or sets the display mode, either MDI or Tabbed Documents.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
Property DisplayMode As vsDisplay
'Usage
Dim instance As DTE2 
Dim value As vsDisplay 

value = instance.DisplayMode

instance.DisplayMode = value
vsDisplay DisplayMode { get; set; }
property vsDisplay DisplayMode {
    vsDisplay get ();
    void set (vsDisplay value);
}
function get DisplayMode () : vsDisplay 
function set DisplayMode (value : vsDisplay)

Property Value

Type: EnvDTE.vsDisplay
A vsDisplay constant representing the display mode.

Implements

_DTE.DisplayMode

Examples

Sub DisplayModeExample()
   If DTE2.DisplayMode = vsDisplay.vsDisplayMDI Then
     MsgBox("Environment is in MDI mode.")
   Else
     MsgBox("Environment is in Tabbed Documents mode.")
   End If
End Sub

.NET Framework Security

See Also

Reference

DTE2 Interface

DTE2 Members

DisplayMode Overload

EnvDTE80 Namespace