OutputWindowPanes Interface

Contains all Output window panes in the integrated development environment (IDE).

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

public interface OutputWindowPanes : IEnumerable

The OutputWindowPanes type exposes the following members.

Public propertyCountGets a value indicating the number of OutputWindowPane objects in the collection.
Public propertyDTEGets the top-level extensibility object.
Public propertyParentGets the immediate parent object of a OutputWindowPanes collection.

Public methodAddCreates a new Output window pane and adds it to the collection.
Public methodGetEnumeratorReturns an enumerator for items in the collection.
Public methodItemReturns a OutputWindowPane object in a OutputWindowPanes collection.

Sub OutputWindowPanesExample()
   ' 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