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(R) Visual Basic(R) .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 命名空间