InkRecognizerCollection.Count Property
Gets the number of elements in the collection.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public ReadOnly Property Count As Integer
'Usage
Dim instance As InkRecognizerCollection
Dim value As Integer
value = instance.Count
public int Count { get; }
public:
virtual property int Count {
int get () sealed;
}
public final function get Count () : int
Property Value
Type: System.Int32
The number of elements in the collection.
Implements
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.
' 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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
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