Поделиться через


InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator - класс

Обновлен: Ноябрь 2007

An implementation of the System.Collections.IEnumerator interface that supports iterating over a InkRecognizerBaseCollection.

Пространство имен:  System.Windows.Ink.AnalysisCore
Сборка:  IACore (в IACore.dll)

Синтаксис

'Декларация
Public Class InkRecognizerBaseCollectionEnumerator _
    Implements IEnumerator
'Применение
Dim instance As InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator
public class InkRecognizerBaseCollectionEnumerator : IEnumerator
public ref class InkRecognizerBaseCollectionEnumerator : IEnumerator
public class InkRecognizerBaseCollectionEnumerator implements IEnumerator
public class InkRecognizerBaseCollectionEnumerator implements IEnumerator

Заметки

This enumerator provides read-only access to the elements in a referenced InkRecognizerBaseCollection. For example, the foreach statement of the Microsoft Visual Basic and C# programming languages, which iterates through the elements of a collection, retrieves an InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator from an instance of InkRecognizerBaseCollection in order to iterate through the elements in the collection.

For more information about this class, see System.Collections.IEnumerator.

Примеры

The following example iterates over a InkRecognizerBaseCollection and returns information for all of the InkRecognizerBase objects in the collection, theInkRecognizerCollection.

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

' Iterate over the InkRecognizerCollection to collect information
' on each InkRecognizer.
Dim enumerator As _
    InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator = _
        theInkRecognizerCollection.GetEnumerator()
While (enumerator.MoveNext())
    ' Use a helper method to get a string containing information
    ' on the InkRecognizer.
    result.AppendLine(Me.GetInkRecognizerData(enumerator.Current))
End While
                // 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.
                InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator enumerator =
                    theInkRecognizerCollection.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    // Use a helper method to get a string containing information
                    // on the InkRecognizer.
                    result.AppendLine(this.GetInkRecognizerData(enumerator.Current));
                }

Иерархия наследования

System.Object
  System.Windows.Ink.AnalysisCore.InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator

Потокобезопасность

Любые открытые члены этого типа, объявленные как static (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.

Платформы

Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator - члены

System.Windows.Ink.AnalysisCore - пространство имен