共用方式為


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,以便逐一查看集合中的元素。

如需這個類別 (Class) 的詳細資訊,請參閱 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

執行緒安全

這個型別的任何 Public 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 命名空間