Sdílet prostřednictvím


ToolWindows.OutputWindow Property

Definition

Gets the OutputWindow object.

public:
 property EnvDTE::OutputWindow ^ OutputWindow { EnvDTE::OutputWindow ^ get(); };
public:
 property EnvDTE::OutputWindow ^ OutputWindow { EnvDTE::OutputWindow ^ get(); };
[System.Runtime.InteropServices.DispId(7)]
public EnvDTE.OutputWindow OutputWindow { [System.Runtime.InteropServices.DispId(7)] get; }
[<System.Runtime.InteropServices.DispId(7)>]
[<get: System.Runtime.InteropServices.DispId(7)>]
member this.OutputWindow : EnvDTE.OutputWindow
Public ReadOnly Property OutputWindow As OutputWindow

Property Value

An OutputWindow object.

Attributes

Examples

This example adds an Output Window, titled "My output", activates it, adds some text to it, and then clears it.

Imports EnvDTE  
Imports EnvDTE80  
Public Sub OutputWindowManip(ByVal dte As DTE2)  
    Dim myOut As OutputWindow  
    myOut = _applicationObject.ToolWindows.OutputWindow  
    Dim myPane As OutputWindowPane  
    MsgBox("Creating an output window.")  
    myPane = myOut.OutputWindowPanes.Add("My output")  
    myPane.Activate()  
    MsgBox("Adding some text to the output window...")  
    myPane.OutputString("Adding some text to the output window.")  
    MsgBox("Clear the text")  
    myPane.Clear()  
End Sub  
using EnvDTE;  
using EnvDTE80;  
using System.Windows.Forms;  
public void OutputWindowManip(DTE2 dte)  
{  
    OutputWindow myOut;  
    myOut = _applicationObject.ToolWindows.OutputWindow;  
    OutputWindowPane myPane;  
    MessageBox.Show("Creating an output window...");  
    myPane = myOut.OutputWindowPanes.Add("My output");  
    myPane.Activate();  
    MessageBox.Show("Adding some text to the output window...");  
    myPane.OutputString("Adding some text to the output window.");  
    MessageBox.Show("Clear the text");  
    myPane.Clear();  
}  

Applies to