共用方式為


OutputWindowPanes 介面

包含所有在整合式開發環境 (IDE) 中的 [輸出] 視窗窗格。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
<GuidAttribute("B02CF62A-9470-4308-A521-9675FBA395AB")> _
Public Interface OutputWindowPanes _
    Inherits IEnumerable
[GuidAttribute("B02CF62A-9470-4308-A521-9675FBA395AB")]
public interface OutputWindowPanes : IEnumerable
[GuidAttribute(L"B02CF62A-9470-4308-A521-9675FBA395AB")]
public interface class OutputWindowPanes : IEnumerable
[<GuidAttribute("B02CF62A-9470-4308-A521-9675FBA395AB")>]
type OutputWindowPanes =  
    interface 
        interface IEnumerable 
    end
public interface OutputWindowPanes extends IEnumerable

OutputWindowPanes 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 Count 取得值,表示集合中的 OutputWindowPane 物件數目。
公用屬性 DTE 取得最上層的擴充性物件。
公用屬性 Parent 取得 OutputWindowPanes 集合的直接上層父物件。

回頁首

方法

  名稱 描述
公用方法 Add 建立新的 [輸出] 視窗窗格,並將它加入至集合中。
公用方法 GetEnumerator 傳回集合中項目的列舉程式。
公用方法 Item 傳回在 OutputWindowPanes 集合中的 OutputWindowPane 物件。

回頁首

範例

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

請參閱

參考

EnvDTE 命名空間