次の方法で共有


CursorButtons.Item プロパティ (Int32)

CursorButtons コレクション内の指定されたインデックス位置にある CursorButton オブジェクトを取得します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
Public ReadOnly Property Item ( _
    index As Integer _
) As CursorButton
'使用
Dim instance As CursorButtons
Dim index As Integer
Dim value As CursorButton

value = instance.Item(index)
public CursorButton Item[
    int index
] { get; }
public:
property CursorButton^ Item[int index] {
    CursorButton^ get (int index);
}
/** @property */
public CursorButton get_Item(
    int index
)
JScript では、インデックス付きプロパティはサポートされません。

パラメータ

プロパティ値

型 : Microsoft.Ink.CursorButton
CursorButtons コレクション内の指定された CursorButton オブジェクト。

解説

index が CursorButtons コレクションの既存のメンバと一致しない場合は、System.ArgumentOutOfRangeException がスローされます。

この C# の例では、最初に Cursor、theCursor の CursorButtons コレクションから CursorButton オブジェクトを取得します。

CursorButton firstButton = theCursor.Buttons[0];

この Microsoft® Visual Basic® .NET の例では、最初に Cursor、theCursor の CursorButtons コレクションから CursorButton オブジェクトを取得します。

Dim firstButton As CursorButton = theCursor.Buttons.Item(0)

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

CursorButtons クラス

CursorButtons メンバ

Item オーバーロード

Microsoft.Ink 名前空間