OutputWindowPanes.Item 方法

返回 OutputWindowPanes 集合中的一个 OutputWindowPane 对象。

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

语法

声明
Function Item ( _
    index As Object _
) As OutputWindowPane
OutputWindowPane Item(
    Object index
)
OutputWindowPane^ Item(
    Object^ index
)
abstract Item : 
        index:Object -> OutputWindowPane 
function Item(
    index : Object
) : OutputWindowPane

参数

返回值

类型:EnvDTE.OutputWindowPane
一个 OutputWindowPane 对象。

备注

传递给 Index 的值为:

  • 一个整数,它是 OutputWindowPane 对象在其 OutputWindowPanes 集合中的索引。

    例如 OutputWindowPanes.Item(4)。

    - 或 -

  • 集合中某个 OutputWindowPane 的名称。

    例如,如果您有一个名为“My Output Window”的“输出”窗口,可以不用索引值引用它,而是用其名称引用它,如 OutputWindowPanes.Item("My Output Window")。

如果集合找不到对应于索引值的对象,则 Item 方法引发 ArgumentException 异常。

.NET Framework 安全性

请参见

参考

OutputWindowPanes 接口

EnvDTE 命名空间

其他资源

如何:编译和运行自动化对象模型代码示例