获取 ContextLinkBaseCollection 中指定索引处或者具有指定标识符的 ContextLinkBase 对象。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public ReadOnly Property Item ( _
index As Integer _
) As ContextLinkBase
用法
Dim instance As ContextLinkBaseCollection
Dim index As Integer
Dim value As ContextLinkBase
value = instance.Item(index)
public ContextLinkBase Item[
int index
] { get; }
public:
property ContextLinkBase^ Item[int index] {
ContextLinkBase^ get (int index);
}
/** @property */
public ContextLinkBase get_Item(
int index
)
JScript 不支持索引属性。
参数
- index
类型:System.Int32
要获取的 ContextLinkBase 对象的从零开始的索引。
属性值
类型:System.Windows.Ink.AnalysisCore.ContextLinkBase
ContextLinkBaseCollection 中指定索引处的 ContextLinkBase 对象。
备注
可以使用集合的索引器访问 Item,如下面的示例所示。
如果该索引与 ContextLinkBaseCollection 的现有成员不匹配,则会引发 System.ArgumentOutOfRangeException。
示例
下面的示例获取 ContextLinkBaseCollection (links) 中的第一个节点。
Dim firstLink As ContextLinkBase = links(0)
ContextLinkBase firstLink = links[0];
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0