InkRecognizerCollection.InkRecognizerCollectionEnumerator Class
An implementation of the System.Collections.IEnumerator interface that supports iterating over a InkRecognizerCollection.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Class InkRecognizerCollectionEnumerator _
Implements IEnumerator
'Usage
Dim instance As InkRecognizerCollection.InkRecognizerCollectionEnumerator
public class InkRecognizerCollectionEnumerator : IEnumerator
public ref class InkRecognizerCollectionEnumerator : IEnumerator
public class InkRecognizerCollectionEnumerator implements IEnumerator
Remarks
This enumerator provides read-only access to the elements in a referenced InkRecognizerCollection. For example, the foreach statement of the Microsoft Visual Basic and C# programming languages, which iterates through the elements of a collection, retrieves an InkRecognizerCollection.InkRecognizerCollectionEnumerator from an instance of InkRecognizerCollection in order to iterate through the elements in the collection.
For more information about this class, see IEnumerator.
Examples
The following example iterates over a InkRecognizerCollection and returns information for all of the InkRecognizer 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:" & 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));
}
Inheritance Hierarchy
System.Object
System.Windows.Ink.InkRecognizerCollection.InkRecognizerCollectionEnumerator
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkRecognizerCollection.InkRecognizerCollectionEnumerator Members