AnalysisAlternateBaseCollection 类
AnalysisAlternateBaseCollection 的基类。包含作为墨迹分析结果的 AnalysisAlternateBase 对象的集合。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public Class AnalysisAlternateBaseCollection _
Implements ICollection, IEnumerable
用法
Dim instance As AnalysisAlternateBaseCollection
public class AnalysisAlternateBaseCollection : ICollection,
IEnumerable
public ref class AnalysisAlternateBaseCollection : ICollection,
IEnumerable
public class AnalysisAlternateBaseCollection implements ICollection,
IEnumerable
public class AnalysisAlternateBaseCollection implements ICollection, IEnumerable
示例
下面的示例对 InkAnalyzerBase (theInkAnalyzerBase) 调用 GetAlternates。然后,此示例遍历 AnalysisAlternateBaseCollection,并使用识别置信级别不为 Poor 的所有备选项填充 ListBox (alternatesListBox)。
alternatesListBox.Items.Clear()
Me.currentAlternates = theInkAnalyzerBase.GetAlternates(selectedSubNodes)
Dim alternate As AnalysisAlternateBase
For Each alternate In Me.currentAlternates
' Add only those that are not Poor confidence
If alternate.InkRecognitionConfidence <> System.Windows.Ink.AnalysisCore.InkRecognitionConfidence.Poor Then
alternatesListBox.Items.Add(alternate.RecognizedString)
End If
Next alternate
alternatesListBox.Items.Clear();
this.currentAlternates = theInkAnalyzerBase.GetAlternates(selectedSubNodes);
foreach (AnalysisAlternateBase alternate in this.currentAlternates)
{
// Add only those that are not Poor confidence
if (alternate.InkRecognitionConfidence !=
System.Windows.Ink.AnalysisCore.InkRecognitionConfidence.Poor)
{
alternatesListBox.Items.Add(alternate.RecognizedString);
}
}
继承层次结构
System.Object
System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
AnalysisAlternateBaseCollection 成员
System.Windows.Ink.AnalysisCore 命名空间
AnalysisAlternateBaseCollection