表示集成开发环境 (IDE) 中的**“输出”**窗口。
命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)
语法
声明
<GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")> _
Public Interface OutputWindow
[GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")]
public interface OutputWindow
[GuidAttribute(L"EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")]
public interface class OutputWindow
[<GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")>]
type OutputWindow =  interface end
public interface OutputWindow
OutputWindow 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | ActivePane | 获取 OutputWindow 中最近活动的窗格。 | 
| .gif) | DTE | 获取顶级扩展性对象。 | 
| .gif) | OutputWindowPanes | 获取 OutputWindow 对象的 OutputWindowPanes 集合。 | 
| .gif) | Parent | 获取 OutputWindow 对象的直接父对象。 | 
页首
备注
**“输出”窗口显示各种 IDE 工具的文本输出。 每个工具可能使用不同的输出窗口窗格。 使用窗口顶部的下拉框选择窗格。 例如,生成错误在“生成错误”**窗格中显示,每个外部命令工具可能在其专有的输出窗口窗格中显示。
示例
Sub OutputWindowExample()
   ' 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