Compartir a través de


InkRecognizerCollection.Count (Propiedad)

Actualización: noviembre 2007

Obtiene el número de elementos de la colección.

Espacio de nombres:  Microsoft.Ink
Ensamblado:  Microsoft.Ink.Analysis (en Microsoft.Ink.Analysis.dll)

Sintaxis

'Declaración
Public ReadOnly Property Count As Integer
'Uso
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

Valor de propiedad

Tipo: System.Int32
Número de elementos de la colección.

Implementaciones

ICollection.Count

Ejemplos

El ejemplo siguiente obtiene el primer reconocedor del objeto InkRecognizerCollection, theInkRecognizerCollection, si la colección no está vacía. En este ejemplo se comprueba también si la colección está sincronizada.

' 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.
            }

Plataformas

Windows Vista

.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Información de versión

.NET Framework

Compatible con: 3.0

Vea también

Referencia

InkRecognizerCollection (Clase)

InkRecognizerCollection (Miembros)

Microsoft.Ink (Espacio de nombres)