WindowConfigurations.Item 方法

返回 WindowConfigurations 集合的一个索引成员。

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

语法

声明
Function Item ( _
    index As Object _
) As WindowConfiguration
WindowConfiguration Item(
    Object index
)
WindowConfiguration^ Item(
    [InAttribute] Object^ index
)
abstract Item : 
        index:Object -> WindowConfiguration
function Item(
    index : Object
) : WindowConfiguration

参数

  • index
    类型:Object

    必选。 要返回的项的索引。

返回值

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

备注

传递到 index 的值是一个整数,该整数是 WindowConfiguration 对象在其集合中的索引。 Index 还可以是一个字符串值,该字符串值等于集合中 WindowConfiguration 的名称。

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

.NET Framework 安全性

请参阅

参考

WindowConfigurations 接口

EnvDTE 命名空间

其他资源

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