Tablets.Item Property
Gets the Tablet object at the specified index within the Tablets collection.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As Tablet
'Usage
Dim instance As Tablets
Dim index As Integer
Dim value As Tablet
value = instance.Item(index)
public Tablet this[
int index
] { get; }
public:
property Tablet^ Item[int index] {
Tablet^ get (int index);
}
JScript does not support indexed properties.
Parameters
index
Type: System.Int32The zero-based index of the Tablet object to get.
Property Value
Type: Microsoft.Ink.Tablet
The Tablet object at the specified index within the Tablets collection.
Remarks
An ArgumentOutOfRangeException is thrown if the index does not match an existing member of the Tablets collection.
Note
This property is not available when using C#. Instead, you must use the collection's indexer as shown in the following example.
Examples
This example gets the first Tablet object from the Tablets collection, allTablets.
' get the first tablet
Dim FirstTablet1 As Tablet = New Tablets().Item(0)
' or another way to do it
Dim allTablets As Tablets = New Tablets()
Dim FirstTablet2 As Tablet = allTablets.Item(0)
' yet another way
Dim FirstTablet3 As Tablet = allTablets(0)
' the following does not compile,
' indexer is not available directly from the .ctor in VB
' Dim FirstTablet4 As Tablet = New Tablets()(0)
// get the first tablet
Tablet FirstTablet1 = new Tablets()[0];
// or another way to do it
Tablets allTablets = new Tablets();
Tablet FirstTablet2 = allTablets[0];
// the following does not compile, Item is not available in C#
// Tablet FirstTablet3 = allTablets.Items[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