InkRecognizerCollection.Count, propriété
Mise à jour : November 2007
Obtient le nombre d'éléments de la collection.
Espace de noms : System.Windows.Ink
Assembly : IAWinFX (dans IAWinFX.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 obtient 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.
' 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.
}
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