共用方式為


TextPanes.Item 方法

傳回在 TextPanes 集合中的 TextPane 物件。

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

語法

'宣告
Function Item ( _
    index As Object _
) As TextPane
TextPane Item(
    Object index
)
TextPane^ Item(
    [InAttribute] Object^ index
)
abstract Item : 
        index:Object -> TextPane
function Item(
    index : Object
) : TextPane

參數

  • index
    類型:Object

    必要項。 要傳回之 TextPane 物件的索引。

傳回值

類型:EnvDTE.TextPane
TextPane 物件。

備註

傳遞到 Index 的值,是在 TextPanes 集合中的 TextPane 物件索引之整數值,或是集合中的 TextPane 物件名稱。

如果集合無法找到對應於索引值的物件,Item 方法就會擲回 ArgumentException 例外狀況。

.NET Framework 安全性

請參閱

參考

TextPanes 介面

EnvDTE 命名空間

其他資源

如何:編譯和執行 Automation 物件模型程式碼範例