CursorButtons コレクション内の指定されたグローバル一意識別子 (GUID) で CursorButton オブジェクトを取得します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public ReadOnly Property Item ( _
id As Guid _
) As CursorButton
'使用
Dim instance As CursorButtons
Dim id As Guid
Dim value As CursorButton
value = instance.Item(id)
public CursorButton Item[
Guid id
] { get; }
public:
property CursorButton^ Item[Guid id] {
CursorButton^ get (Guid id);
}
/** @property */
public CursorButton get_Item(
Guid id
)
JScript では、インデックス付きプロパティはサポートされません。
パラメータ
- id
型 : System.Guid
取得する CursorButton オブジェクトのグローバル一意識別子 (GUID)。
プロパティ値
型 : Microsoft.Ink.CursorButton
CursorButtons コレクション内の指定された CursorButton オブジェクト。
解説
id が CursorButtons コレクションの既存のメンバと一致しない場合は System.ArgumentException がスローされます。
例
この C# の例では、GUID cursorButtonGuid を使用して、Cursor、theCursor の CursorButtons コレクションから CursorButton オブジェクトを取得します。
CursorButton theCursorButton = theCursor.Buttons[cursorButtonGuid];
この Microsoft® Visual Basic® .NET の例では、GUID cursorButtonGuid を使用して、Cursor、theCursor の CursorButtons コレクションから CursorButton オブジェクトを取得します。
Dim theCursorButton As CursorButton = theCursor.Buttons.Item(cursorButtonGuid)
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0