共用方式為


AnalysisAlternateBase.RecognizedString 屬性

取得 AnalysisAlternateBase 物件的已辨識字串值。

命名空間:  System.Windows.Ink.AnalysisCore
組件:  IACore (在 IACore.dll 中)

語法

'宣告
Public ReadOnly Property RecognizedString As String
'用途
Dim instance As AnalysisAlternateBase
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
AnalysisAlternateBase 物件的已辨識字串值。

範例

下列範例會在 InkAnalyzerBase (名為 theInkAnalyzerBase) 上呼叫 GetAlternates。接著會對 AnalysisAlternateBaseCollection 執行迴圈,並將 InkRecognitionConfidence 值不是 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);
    }
}

平台

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

AnalysisAlternateBase 類別

AnalysisAlternateBase 成員

System.Windows.Ink.AnalysisCore 命名空間