ContextLinkCollection.Item 属性

获取 ContextLinkCollection 中指定索引处的 ContextLink 对象。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public ReadOnly Property Item ( _
    index As Integer _
) As ContextLink
用法
Dim instance As ContextLinkCollection
Dim index As Integer
Dim value As ContextLink

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

参数

属性值

类型:System.Windows.Ink.ContextLink
ContextLinkCollection 中指定索引处的 ContextLink 对象。

备注

可以使用集合的索引器来访问 Item 属性,如本主题中的示例所示。

如果索引与 ContextLinkCollection 集合的现有成员不匹配,则会引发 [ArgumentOutOfRangeException]。

示例

下面的示例获取名为 links 的 ContextLinkCollection 中的第一个节点。

Dim firstLink As ContextLink = links(0)
ContextLink firstLink = links[0];

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ContextLinkCollection 类

ContextLinkCollection 成员

System.Windows.Ink 命名空间