InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator 类

支持循环访问 InkRecognizerBaseCollection 的 System.Collections.IEnumerator 接口的实现。

命名空间:  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

备注

此枚举数提供对被引用的 InkRecognizerBaseCollection 中的元素的只读访问。例如,Microsoft Visual Basic 和 C# 编程语言中的 foreach 语句(该语句循环访问集合的元素)从 InkRecognizerBaseCollection 的实例检索 InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator,从而循环访问集合中的元素。

有关此类的更多信息,请参见 System.Collections.IEnumerator。

示例

下面的示例循环访问 InkRecognizerBaseCollection,并返回有关集合 theInkRecognizerCollection 中所有 InkRecognizerBase 对象的信息。

' 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(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

平台

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator 成员

System.Windows.Ink.AnalysisCore 命名空间