次の方法で共有


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(ja-jp,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