共用方式為


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 不支援索引屬性。

參數

屬性值

型別:Microsoft.Ink.ExtendedProperty
ExtendedProperties 集合中位於指定索引處的 ExtendedProperty 物件。

備註

如果 ID 與 ExtendedProperties 集合的現有成員不相符,則會擲回 ArgumentException (英文)。

ms582119.alert_note(zh-tw,VS.90).gif注意事項:

在 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

請參閱

參考

ExtendedProperties 類別

ExtendedProperties 成員

Item 多載

Microsoft.Ink 命名空間

ExtendedProperty