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