InkRecognizerCollection.Count, propriété
Mise à jour : November 2007
Obtient le nombre d'éléments de la collection.
Espace de noms : Microsoft.Ink
Assembly : Microsoft.Ink.Analysis (dans Microsoft.Ink.Analysis.dll)
Syntaxe
'Déclaration
Public ReadOnly Property Count As Integer
'Utilisation
Dim instance As InkRecognizerCollection
Dim value As Integer
value = instance.Count
public int Count { get; }
public:
virtual property int Count {
int get () sealed;
}
/** @property */
public final int get_Count()
public final function get Count () : int
Valeur de propriété
Type : System.Int32
Nombre d'éléments de la collection.
Implémentations
Exemples
L'exemple suivant place le premier module de reconnaissance dans le InkRecognizerCollection, theInkRecognizerCollection, si la collection n'est pas vide. Cet exemple vérifie également si la collection est synchronisée.
' 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.
}
Plateformes
Windows Vista
Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
Informations de version
.NET Framework
Pris en charge dans : 3.0
Voir aussi
Référence
InkRecognizerCollection, classe