共用方式為


ContextNodeBaseCollection.Item 屬性 (Int32)

取得 ContextNodeBaseCollection 內位於指定索引處的 ContextNodeBase 物件。

命名空間:  System.Windows.Ink.AnalysisCore
組件:  IACore (在 IACore.dll 中)

語法

'宣告
Public ReadOnly Property Item ( _
    index As Integer _
) As ContextNodeBase
'用途
Dim instance As ContextNodeBaseCollection
Dim index As Integer
Dim value As ContextNodeBase

value = instance.Item(index)
public ContextNodeBase Item[
    int index
] { get; }
public:
property ContextNodeBase^ Item[int index] {
    ContextNodeBase^ get (int index);
}
/** @property */
public ContextNodeBase get_Item(
    int index
)
JScript 不支援索引屬性。

參數

屬性值

型別:System.Windows.Ink.AnalysisCore.ContextNodeBase
ContextNodeBaseCollection 內位於指定索引處的 ContextNodeBase 物件。

備註

您可以使用集合的索引子存取 Item 屬性,如下列範例所示。

如果索引與 ContextNodeBaseCollection 的現有成員不相符,則會擲回 ArgumentOutOfRangeException

範例

下列範例會取得 ContextNodeBaseCollection (變數名稱為 nodes) 內的第一個節點。

Dim firstNode As ContextNodeBase = nodes(0)
            ContextNodeBase firstNode = nodes[0];

平台

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

ContextNodeBaseCollection 類別

ContextNodeBaseCollection 成員

Item 多載

System.Windows.Ink.AnalysisCore 命名空間