InkRecognizerBaseCollection.Count, propriété
Mise à jour : November 2007
Obtient le nombre d'éléments de la collection.
Espace de noms : System.Windows.Ink.AnalysisCore
Assembly : IACore (dans IACore.dll)
Syntaxe
'Déclaration
Public ReadOnly Property Count As Integer
'Utilisation
Dim instance As InkRecognizerBaseCollection
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 InkRecognizerBaseCollection, 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 InkRecognizerBaseCollection = _
theInkAnalyzerBase.GetInkRecognizersByPriority()
' Check if there are recognizers in the collection.
If (0 < theInkRecognizerCollection.Count) Then
' Get the first recognizer in the collection.
Dim theFirstInkRecognizer As System.Windows.Ink.AnalysisCore.InkRecognizerBase = _
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.
InkRecognizerBaseCollection theInkRecognizerCollection =
theInkAnalyzerBase.GetInkRecognizersByPriority();
// Check if there are recognizers in the collection.
if (0 < theInkRecognizerCollection.Count)
{
// Get the first recognizer in the collection.
InkRecognizerBase theFirstInkRecognizer =
theInkRecognizerCollection[0];
// Insert code here.
}
// Check if the recognizers collection is synchronized.
if (theInkRecognizerCollection.IsSynchronized)
{
// Insert code here.
}
Plateformes
Windows Vista, Windows XP SP2, Windows Server 2003
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
InkRecognizerBaseCollection, classe