Partager via


DTE2.DisplayMode Property

Definition

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

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

Property Value

A vsDisplay constant representing the display mode.

Implements

Attributes

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  

Applies to