InkRecognizerCollection.InkRecognizerCollectionEnumerator.Reset 方法
将枚举数索引重置为 InkRecognizerCollection 集合的开始位置。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)
语法
声明
Public Sub Reset
用法
Dim instance As InkRecognizerCollection..::.InkRecognizerCollectionEnumerator
instance.Reset()
public void Reset()
public:
virtual void Reset() sealed
public final void Reset()
public final function Reset()
实现
示例
此示例获取 InkRecognizerCollection 集合的 System.Collections.IEnumerator,然后使用它遍历该集合。
Dim allInkRecognizers As InkRecognizerCollection = mInkAnalyzer.GetInkRecognizersByPriority()
Dim inkRecogNames As List(Of String) = New List(Of String)
Dim theEnumerator As IEnumerator = allInkRecognizers.GetEnumerator()
theEnumerator.Reset()
While theEnumerator.MoveNext()
Dim IR As InkRecognizer = DirectCast(theEnumerator.Current, InkRecognizer)
inkRecogNames.Add(IR.Name)
End While
InkRecognizerCollection allInkRecognizers = mInkAnalyzer.GetInkRecognizersByPriority();
List<String> inkRecogNames = new List<string>();
IEnumerator theEnumerator = allInkRecognizers.GetEnumerator();
theEnumerator.Reset();
while (theEnumerator.MoveNext())
{
InkRecognizer IR = (InkRecognizer)theEnumerator.Current;
inkRecogNames.Add(IR.Name);
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
InkRecognizerCollection.InkRecognizerCollectionEnumerator 类
InkRecognizerCollection.InkRecognizerCollectionEnumerator 成员