Share via


Tablets.Item Property

Tablets.Item Property

Gets the Tablet object at the specified index within the Tablets collection.

Definition

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

Property Value

Microsoft.Ink.Tablet. The Tablet object at the specified index within the Tablets collection.

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

Parameters

index System.Int32. [in] The zero-based index of the Tablet 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 Tablets 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 Tablet object from the Tablets collection, theTablets.

Microsoft.Ink.Tablets theTablets = new Tablets();
Microsoft.Ink.Tablet theFirstTablet = theTablets[0];

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example gets the first Tablet object from the Tablets collection, theTablets.

Dim theTablets As Microsoft.Ink.Tablets = new Tablets()
Dim theFirstTablet As Microsoft.Ink.Tablet = theTablets.Item(0)

See Also