Compartilhar via


Cursors.Item Property

Cursors.Item Property

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

Definition

Visual Basic .NET Public ReadOnly Property Item As Cursor
C# public Cursor Item { get; }
Managed C++ public: __property Cursor* get_Item(
int *index);

Property Value

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

This property is read-only. This property has no default value.

Parameters

index System.Int32. [in] The zero-based index of the Cursor object to get.

Exceptions

ArgumentOutOfRangeException Leave Site: Specified identifier was not found

Remarks

An ArgumentOutOfRangeException Leave Site 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

[C#]

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

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

[Visual Basic .NET]

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)

See Also