InkRecognizerBaseCollection.GetEnumerator - метод
Обновлен: Ноябрь 2007
Returns an enumerator that can iterate through the collection.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public Function GetEnumerator As InkRecognizerBaseCollection..::.InkRecognizerBaseCollectionEnumerator
'Применение
Dim instance As InkRecognizerBaseCollection
Dim returnValue As InkRecognizerBaseCollection..::.InkRecognizerBaseCollectionEnumerator
returnValue = instance.GetEnumerator()
public InkRecognizerBaseCollection..::.InkRecognizerBaseCollectionEnumerator GetEnumerator()
public:
InkRecognizerBaseCollection..::.InkRecognizerBaseCollectionEnumerator^ GetEnumerator()
public InkRecognizerBaseCollection..::.InkRecognizerBaseCollectionEnumerator GetEnumerator()
public function GetEnumerator() : InkRecognizerBaseCollection..::.InkRecognizerBaseCollectionEnumerator
Возвращаемое значение
Тип: System.Windows.Ink.AnalysisCore.InkRecognizerBaseCollection.InkRecognizerBaseCollectionEnumerator
An enumerator that can be used to iterate through the collection.
Заметки
This collection implements the System.Collections.ICollection interface. For more information about this property, see ICollection.GetEnumerator.
Примеры
The following example uses a foreach statement (For Each…Next in Visual Basic) to iterate through the InkRecognizerBaseCollection, theInkRecognizerCollection. The foreach statement calls the GetEnumerator method in internal code that the compiler generates to support the statement.
' 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.
For Each theRecognizer As InkRecognizerBase _
In theInkRecognizerCollection
' Use a helper method to get a string containing information
' on the InkRecognizer.
result.AppendLine(Me.GetInkRecognizerData(theRecognizer))
Next
// 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.
foreach (System.Windows.Ink.AnalysisCore.InkRecognizerBase theRecognizer
in theInkRecognizerCollection)
{
// Use a helper method to get a string containing information
// on the InkRecognizer.
result.AppendLine(this.GetInkRecognizerData(theRecognizer));
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
InkRecognizerBaseCollection Класс