Share via


CursorButtons.Item Property (Int32)

Gets the CursorButton object at the specified index within the CursorButtons collection.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    index As Integer _
) As CursorButton
'Usage
Dim instance As CursorButtons 
Dim index As Integer 
Dim value As CursorButton 

value = instance.Item(index)
public CursorButton this[
    int index
] { get; }
public:
property CursorButton^ Item[int index] {
    CursorButton^ get (int index);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: Microsoft.Ink.CursorButton
The specified CursorButton object within the CursorButtons collection.

Remarks

An System.ArgumentOutOfRangeException is thrown if the index does not match an existing member of the CursorButtons collection.

Examples

This C# example gets the first CursorButton object from the CursorButtons collection of a Cursor, theCursor.

CursorButton firstButton = theCursor.Buttons[0];

This Microsoft® Visual Basic® .NET example gets the first CursorButton object from the CursorButtons collection of a Cursor, theCursor.

Dim firstButton As CursorButton = theCursor.Buttons.Item(0)

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

CursorButtons Class

CursorButtons Members

Item Overload

Microsoft.Ink Namespace