Cursors.Item Property

Gets the Cursor object at the specified index within the Cursors collection.

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

Syntax

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

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

Parameters

Property Value

Type: Microsoft.Ink.Cursor
The Cursor object at the specified index within the Cursors collection.

Remarks

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

Note

In C#, use the collection's indexer as shown in the following example, instead of using the collection's Item property.

Examples

This C# example gets the first Cursor object from the Cursors collection.

Microsoft.Ink.Cursor theFirstCursor = theInkCollector.Cursors[0];

This Microsoft® Visual Basic® .NET example gets the first Cursor object from the Cursors collection.

Dim theFirstCursor As Microsoft.Ink.Cursor = theInkCollector.Cursors.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

Cursors Class

Cursors Members

Microsoft.Ink Namespace

Cursor