InkRecognizerCollection.Item Property
Gets the element at the specified index.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)
XML Namespace: https://schemas.microsoft.com/winfx/2006/xaml/presentation
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
index As Integer _
) As InkRecognizer
'Usage
Dim instance As InkRecognizerCollection
Dim index As Integer
Dim value As InkRecognizer
value = instance(index)
public InkRecognizer this [
int index
] { get; }
public:
property InkRecognizer^ default [int] {
InkRecognizer^ get (int index);
}
/** @property */
public InkRecognizer get_Item (int index)
Not applicable.
Parameters
- index
The zero-based index of the element to get.
Property Value
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.
Example
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.
' Get a collection of the recognizers installed on this Tablet PC.
Dim theInkRecognizerCollection As 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 InkRecognizer = theInkRecognizerCollection(0)
' Insert code here.
End If
' Check if the recognizers collection is synchronized.
If theInkRecognizerCollection.IsSynchronized Then
' Insert code here.
End If
// Create a collection of the recognizers installed on this Tablet PC.
InkRecognizerCollection theInkRecognizerCollection =
theInkAnalyzer.GetInkRecognizersByPriority();
// Check if there are recognizers in the collection.
if (0 < theInkRecognizerCollection.Count)
{
// Get the first recognizer in the collection.
InkRecognizer theFirstInkRecognizer =
theInkRecognizerCollection[0];
// Insert code here.
}
// Check if the recognizers collection is synchronized.
if (theInkRecognizerCollection.IsSynchronized)
{
// Insert code here.
}
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkRecognizerCollection Class
InkRecognizerCollection Members
System.Windows.Ink Namespace