Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Add Method (OutputWindowPanes Collection)

Visual Studio .NET 2003

Creates a new Output window pane and adds it to the collection.

[Visual Basic .NET]
Public Function Add( _
   ByVal Name As String _
) As OutputWindowPane
[Visual Basic 6]
Function Add( _
   ByVal Name As String _
) As OutputWindowPane
HRESULT __stdcall Add(
   BSTR Name,
   /* [out, retval] */ OutputWindowPane** retVal
OutputWindowPane Add(
   string Name
[JScript .NET]
public function Add(
   Name : String
) : OutputWindowPane


Required. The caption for the new pane.

Return Value

Returns an OutputWindowPane object.


Sub AddExample()
   ' 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 | OutputWindowPane Object

Applies To: OutputWindowPanes Collection

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.