获取 ExtendedProperties 集合中指定索引处的 ExtendedProperty 对象。
命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public ReadOnly Property Item ( _
    id As Guid _
) As ExtendedProperty
用法
Dim instance As ExtendedProperties
Dim id As Guid
Dim value As ExtendedProperty
value = instance.Item(id)
public ExtendedProperty Item[
    Guid id
] { get; }
public:
property ExtendedProperty^ Item[Guid id] {
    ExtendedProperty^ get (Guid id);
}
/** @property */
public ExtendedProperty get_Item(
    Guid id
)
JScript 不支持索引属性。
参数
- id
 类型:System.Guid
 要获取的 ExtendedProperty 对象的从零开始的索引。
属性值
类型:Microsoft.Ink.ExtendedProperty
ExtendedProperties 集合中指定索引处的 ExtendedProperty 对象。
备注
如果该索引与 ExtendedProperties 集合的现有成员不匹配,则会引发 ArgumentOutOfRangeException。
备注
在 C# 中,应使用该集合的索引器,而不使用该集合的 Item 属性。
示例
此示例使用 Guid epGuid 从 Stroke 对象的 ExtendedProperties 集合中检索一个 ExtendedProperty 对象。
Dim exProp As ExtendedProperty = stroke.ExtendedProperties.Item(epGuid)
' another way to access the item
Dim exPropSame As ExtendedProperty = stroke.ExtendedProperties(epGuid)
ExtendedProperty exProp = stroke.ExtendedProperties[epGuid];
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0