Condividi tramite


Metodo InkRecognizerCollection.GetEnumerator

Aggiornamento: novembre 2007

Restituisce un enumeratore che può essere utilizzato per scorrere l'insieme.

Spazio dei nomi:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Sintassi

'Dichiarazione
Public Function GetEnumerator As InkRecognizerCollection..::.InkRecognizerCollectionEnumerator
'Utilizzo
Dim instance As InkRecognizerCollection
Dim returnValue As InkRecognizerCollection..::.InkRecognizerCollectionEnumerator

returnValue = instance.GetEnumerator()
public InkRecognizerCollection..::.InkRecognizerCollectionEnumerator GetEnumerator()
public:
InkRecognizerCollection..::.InkRecognizerCollectionEnumerator^ GetEnumerator()
public InkRecognizerCollection..::.InkRecognizerCollectionEnumerator GetEnumerator()
public function GetEnumerator() : InkRecognizerCollection..::.InkRecognizerCollectionEnumerator

Valore restituito

Tipo: System.Windows.Ink.InkRecognizerCollection.InkRecognizerCollectionEnumerator
Enumeratore che può essere utilizzato per scorrere l'insieme.

Note

Questo insieme implementa l'interfaccia ICollection. Per ulteriori informazioni su questa proprietà, vedere GetEnumerator.

Esempi

Nell'esempio seguente è utilizzata un'istruzione foreach (For Each…Next in Visual Basic) per scorrere InkRecognizerCollection, theInkRecognizerCollection. L'istruzione foreach chiama il metodo GetEnumerator nel codice interno generato dal compilatore per supportare l'istruzione.

' Create a StringBuilder in which to collect the information.
Dim result As New System.Text.StringBuilder()
result.AppendLine("Recognizers in the InkRecognizerCollection:" & Environment.NewLine)

' Iterate over the InkRecognizerCollection to collect information
' on each InkRecognizer.
For Each theRecognizer As InkRecognizer In theInkRecognizerCollection

    ' Use a helper method to get a string containing information
    ' on the InkRecognizer.
    result.AppendLine(Me.GetInkRecognizerData(theRecognizer))

Next theRecognizer
// Create a StringBuilder in which to collect the information.
System.Text.StringBuilder result = new System.Text.StringBuilder();
result.AppendLine("Recognizers in the InkRecognizerCollection:"
    + Environment.NewLine);

// Iterate over the InkRecognizerCollection to collect information
// on each InkRecognizer.
foreach (InkRecognizer theRecognizer
    in theInkRecognizerCollection)
{
    // Use a helper method to get a string containing information
    // on the InkRecognizer.
    result.AppendLine(this.GetInkRecognizerData(theRecognizer));
}

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

InkRecognizerCollection Classe

Membri InkRecognizerCollection

Spazio dei nomi System.Windows.Ink