AnalysisAlternateBaseCollection - класс
Обновлен: Ноябрь 2007
The base class for AnalysisAlternateBaseCollection. Contains a collection of AnalysisAlternateBase objects that are the result of an ink analysis.
Пространство имен: 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
Примеры
The following example calls GetAlternates on an InkAnalyzerBase, theInkAnalyzerBase. It then loops through the AnalysisAlternateBaseCollection and populates a ListBox, alternatesListBox, with all of the alternates that do not have a Poor recognition confidence.
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 (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
AnalysisAlternateBaseCollection - члены
System.Windows.Ink.AnalysisCore - пространство имен
AnalysisAlternateBaseCollection