Export (0) Print
Expand All

_DTE.DisplayMode Property

Gets the display mode, either MDI or Tabbed Documents.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

vsDisplay DisplayMode { get; set; }
/** @property */
vsDisplay get_DisplayMode ()

/** @property */
void set_DisplayMode (/** @attribute InAttribute() */ vsDisplay lpDispMode)

function get DisplayMode () : vsDisplay

function set DisplayMode (lpDispMode : vsDisplay)

Property Value

A vsDisplay constant representing the display mode.

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

Community Additions

ADD
Show:
© 2014 Microsoft