共用方式為


InkWordNode.InkRecognitionConfidence 屬性

取得值,這個值表示 InkAnalyzer 對辨識結果正確性的信賴等級。

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

語法

'宣告
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'用途
Dim instance As InkWordNode
Dim value As InkRecognitionConfidence

value = instance.InkRecognitionConfidence
public InkRecognitionConfidence InkRecognitionConfidence { get; }
public:
property InkRecognitionConfidence InkRecognitionConfidence {
    InkRecognitionConfidence get ();
}
/** @property */
public InkRecognitionConfidence get_InkRecognitionConfidence()
public function get InkRecognitionConfidence () : InkRecognitionConfidence

屬性值

型別:System.Windows.Ink.InkRecognitionConfidence
表示 InkAnalyzer 對辨識結果正確性之信賴等級的值。

範例

下列範例會從 InkAnalyzer (名稱為 theInkAnalyzer) 對所有 InkWordNode 物件執行迴圈。接著會藉由呈現加粗筆劃,標記所有來自辨識信賴等級不是 Strong() 之節點的筆劃。

Dim inkWords As ContextNodeCollection = _
    theInkAnalyzer.FindNodesOfType(ContextNodeType.InkWord)

' Mark each word that is not high confidence as thick.
Dim inkWord As InkWordNode
For Each inkWord In  inkWords
    If inkWord.InkRecognitionConfidence <> InkRecognitionConfidence.Strong Then
        Dim stroke As Stroke
        For Each stroke In  inkWord.Strokes
            stroke.DrawingAttributes.Height = 3F
            stroke.DrawingAttributes.Width = 3F
        Next stroke
    End If
Next inkWord
ContextNodeCollection inkWords =
    theInkAnalyzer.FindNodesOfType(ContextNodeType.InkWord);

// Mark each word that is not high confidence as thick.
foreach (InkWordNode inkWord in inkWords)
{
    if (inkWord.InkRecognitionConfidence != 
           InkRecognitionConfidence.Strong)
    {
        foreach (Stroke stroke in inkWord.Strokes)
        {
            stroke.DrawingAttributes.Height = 3f;
            stroke.DrawingAttributes.Width = 3f;
        }
    }
}

平台

Windows Vista

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

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkWordNode 類別

InkWordNode 成員

System.Windows.Ink 命名空間

TextRecognitionConfidence

Confidence()