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