获取 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(R) Visual Basic(R) .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