Export (0) Print
Expand All

OutputWindowPane Object

Visual Studio .NET 2003

Represents a pane in the Output window.

DTE

   Windows

      Window

         OutputWindow

            OutputWindowPanes

               OutputWindowPane

[Visual Basic .NET]
Public Interface OutputWindowPane
    Inherits IDispatch
[Visual Basic 6]
Class OutputWindowPane
[C++]
interface OutputWindowPane : IDispatch
[C#]
public interface OutputWindowPane : IDispatch
[JScript .NET]
public interface OutputWindowPane extends IDispatch

Remarks

The Output window displays text output. The Output window can have one or more panes, represented by the OutputWindowPane object. Each IDE tool potentially uses a different output window pane. Panes are selected with a drop-down box at the top of the window. For example, build errors go to the "Build Errors" pane, while each external command tool potentially goes to its own distinct output window pane.

Requirements

Namespace: EnvDTE

File: dte.olb

Example

Sub OutputWindowPaneExample()
   ' Create a tool window handle for the Output window.
   Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput)
   ' Create handles to the Output window and its panes.
   Dim OW As OutputWindow = win.Object
   Dim OWp As OutputWindowPane

   ' Add a new pane to the Output window.
   OWp = OW.OutputWindowPanes.Add("A New Pane")
   ' Add a line of text to the new pane.
   OWp.OutputString("Some Text")
End Sub

See Also

OutputWindow Object | OutputWindowPanes Collection

Properties, Methods, and Events

Show:
© 2014 Microsoft