InkRecognizerCollection.InkRecognizerCollectionEnumerator 類別
支援反覆查看 InkRecognizerCollection 之 System.Collections.IEnumerator 介面的實作。
命名空間: System.Windows.Ink
組件: IAWinFX (在 IAWinFX.dll 中)
語法
'宣告
Public Class InkRecognizerCollectionEnumerator _
Implements IEnumerator
'用途
Dim instance As InkRecognizerCollection.InkRecognizerCollectionEnumerator
public class InkRecognizerCollectionEnumerator : IEnumerator
public ref class InkRecognizerCollectionEnumerator : IEnumerator
public class InkRecognizerCollectionEnumerator implements IEnumerator
public class InkRecognizerCollectionEnumerator implements IEnumerator
備註
這個列舉值提供對所參考 InkRecognizerCollection 中元素的唯讀存取。例如,Microsoft Visual Basic 和 C# 程式語言的 foreach 陳述式 (會逐一查看集合的元素),會從 InkRecognizerCollection 的執行個體中擷取 InkRecognizerCollection.InkRecognizerCollectionEnumerator,以便逐一查看集合中的元素。
如需這個類別 (Class) 的詳細資訊,請參閱 IEnumerator。
範例
下列範例會反覆查看 InkRecognizerCollection,並且傳回 theInkRecognizerCollection 集合中所有 InkRecognizer 物件的資訊。
' 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.
Dim enumerator As InkRecognizerCollection.InkRecognizerCollectionEnumerator _
= 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.
InkRecognizerCollection.InkRecognizerCollectionEnumerator 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.InkRecognizerCollection.InkRecognizerCollectionEnumerator
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0
請參閱
參考
InkRecognizerCollection.InkRecognizerCollectionEnumerator 成員