共用方式為


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 命名空間