InkRecognizerCollection.InkRecognizerCollectionEnumerator.MoveNext 方法
将枚举数索引移到集合中的下一对象。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)
语法
声明
Public Function MoveNext As Boolean
用法
Dim instance As InkRecognizerCollection..::.InkRecognizerCollectionEnumerator
Dim returnValue As Boolean
returnValue = instance.MoveNext()
public bool MoveNext()
public:
virtual bool MoveNext() sealed
public final boolean MoveNext()
public final function MoveNext() : boolean
返回值
类型:System.Boolean
如果索引位置引用对象,则为 true;如果索引位置引用集合末尾,则为 false。
实现
示例
此示例获取 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 成员