CursorButtons.Item 屬性 (Guid)
取得 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