Export (0) Print
Expand All
Cut
Run
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
[C++]
HRESULT __stdcall Add(
   BSTR Name,
   /* [out, retval] */ OutputWindowPane** retVal
);
[C#]
OutputWindowPane Add(
   string Name
);
[JScript .NET]
public function Add(
   Name : String
) : OutputWindowPane

Parameters

Name
Required. The caption for the new pane.

Return Value

Returns an OutputWindowPane object.

Example

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
Show:
© 2014 Microsoft. All rights reserved.