共用方式為


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 命名空間