This documentation is archived and is not being maintained.

DisplayMode Property

Visual Studio .NET 2003

Returns the display mode, either MDI or Tabbed Documents.

[Visual Basic .NET]
Public Property DisplayMode() As vsDisplay
[Visual Basic 6]
Property Get DisplayMode() As vsDisplay
Property Let DisplayMode( _
   ByVal NewValue As vsDisplay _
HRESULT __stdcall get_DisplayMode(
   /* [out, retval] */ vsDisplay* retVal
HRESULT __stdcall put_DisplayMode(
   /* [in] */ vsDisplay NewValue
public vsDisplay DisplayMode {get; set;}
[JScript .NET]
public function get DisplayMode() : vsDisplay
public function set DisplayMode(
   NewValue : vsDisplay


A vsDisplay constant value.

Return Value

Represents a vsDisplay constant representing the display mode.


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

See Also

Applies To: DTE Object