共用方式為


ExtendedProperties.Item 屬性 (Guid)

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

參數

屬性值

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

備註

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

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

在 C# 中,請使用集合的索引子,而不要使用集合的 Item 屬性。

範例

這個範例會使用 epGuid 這個 GUID,從 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

請參閱

參考

ExtendedProperties 類別

ExtendedProperties 成員

Item 多載

Microsoft.Ink 命名空間

ExtendedProperty