OutputWindowPane 接口

更新:2007 年 11 月

表示“输出”窗口中的窗格。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
<GuidAttribute("FFC9DFC4-61CA-4B0C-83C2-0703A24F5C16")> _
Public Interface OutputWindowPane
用法
Dim instance As OutputWindowPane
[GuidAttribute("FFC9DFC4-61CA-4B0C-83C2-0703A24F5C16")]
public interface OutputWindowPane
[GuidAttribute(L"FFC9DFC4-61CA-4B0C-83C2-0703A24F5C16")]
public interface class OutputWindowPane
public interface OutputWindowPane

备注

“输出”窗口显示文本输出。“输出”窗口可以有一个或多个窗格,由 OutputWindowPane 对象表示。基本上每个 IDE 工具都单独使用一个输出窗口窗格。使用窗口顶部的下拉框选择窗格。例如,生成错误会转到“生成错误”窗格中,而基本上每个外部命令工具都转到其自己的唯一输出窗口窗格中。

示例

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

另请参见

参考

OutputWindowPane 成员

EnvDTE 命名空间