InkRecognizerCollection.Item Property
Gets the element at the specified index.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As InkRecognizer
'Usage
Dim instance As InkRecognizerCollection
Dim index As Integer
Dim value As InkRecognizer
value = instance.Item(index)
public InkRecognizer this[
int index
] { get; }
public:
property InkRecognizer^ Item[int index] {
InkRecognizer^ get (int index);
}
JScript does not support indexed properties.
Parameters
index
Type: System.Int32The zero-based index of the element to get.
Property Value
Type: Microsoft.Ink.InkRecognizer
The element at the specified index.
Remarks
Note In C#, use the collection's indexer as shown in the C# example, rather than the collection's Item property.
Examples
The following example gets the first recognizer in the InkRecognizerCollection, theInkRecognizerCollection, if the collection is not empty. This example also checks whether the collection is synchronized.
' Create a collection of the recognizers installed on this Tablet PC.
Dim theInkRecognizerCollection As Microsoft.Ink.InkRecognizerCollection _
= theInkAnalyzer.GetInkRecognizersByPriority()
' Check if there are recognizers in the collection.
If (0 < theInkRecognizerCollection.Count) Then
' Get the first recognizer in the collection.
Dim theFirstInkRecognizer As Microsoft.Ink.InkRecognizer = _
theInkRecognizerCollection.Item(0)
' Check if the recognizers collection is synchronized.
If (theInkRecognizerCollection.IsSynchronized) Then
' Insert code here.
End If
End If
// Create a collection of the recognizers installed on this Tablet PC.
Microsoft.Ink.InkRecognizerCollection theInkRecognizerCollection =
theInkAnalyzer.GetInkRecognizersByPriority();
// Check if there are recognizers in the collection.
if (0 < theInkRecognizerCollection.Count)
{
// Get the first recognizer in the collection.
Microsoft.Ink.InkRecognizer theFirstInkRecognizer =
theInkRecognizerCollection[0];
// Insert code here.
}
// Check if the recognizers collection is synchronized.
if (theInkRecognizerCollection.IsSynchronized)
{
// Insert code here.
}
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