AnalysisAlternate.RecognizedString 属性

获取 AnalysisAlternate 对象的已识别字符串值。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public ReadOnly Property RecognizedString As String
用法
Dim instance As AnalysisAlternate
Dim value As String

value = instance.RecognizedString
public string RecognizedString { get; }
public:
property String^ RecognizedString {
    String^ get ();
}
/** @property */
public String get_RecognizedString()
public function get RecognizedString () : String

属性值

类型:System.String
AnalysisAlternate 对象的已识别字符串值。

示例

下面的示例对名为 theInkAnalyzer 的 InkAnalyzer 调用 GetAlternates。然后,此示例遍历 AnalysisAlternateCollection,并使用其 InkRecognitionConfidence 值不为 Poor 的所有备选项填充名为 alternatesListBox 的 ListBox

alternatesListBox.Items.Clear()
Me.currentAlternates = theInkAnalyzer.GetAlternates(selectedSubNodes)
Dim alternate As AnalysisAlternate
For Each alternate In  Me.currentAlternates
    ' Add only those that are not Poor confidence
    If alternate.InkRecognitionConfidence <> InkRecognitionConfidence.Poor Then
        alternatesListBox.Items.Add(alternate.RecognizedString)
    End If
Next alternate
alternatesListBox.Items.Clear();
this.currentAlternates = theInkAnalyzer.GetAlternates(selectedSubNodes);
foreach (AnalysisAlternate alternate in this.currentAlternates)
{
    alternatesListBox.Items.Add(alternate.RecognizedString);
    // Add only those that are not Poor confidence.
    if (alternate.InkRecognitionConfidence !=
        InkRecognitionConfidence.Poor)
    {
        alternatesListBox.Items.Add(alternate.RecognizedString);
    }
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

AnalysisAlternate 类

AnalysisAlternate 成员

System.Windows.Ink 命名空间