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