共用方式為


LineNode.InkRecognitionConfidence 屬性

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

命名空間:  Microsoft.Ink
組件:  Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)

語法

'宣告
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'用途
Dim instance As LineNode
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

屬性值

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

範例

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

    Dim lines As ContextNodeCollection = _
        theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.Line)

    ' Mark each line that is not high confidence as thick.
    Dim line As LineNode
    For Each line In lines
        If line.InkRecognitionConfidence <> _
          Microsoft.Ink.InkRecognitionConfidence.Strong Then
            Dim inkStroke As Stroke
            For Each inkStroke In line.Strokes
                inkStroke.DrawingAttributes = New DrawingAttributes(150.0F)
            Next inkStroke
        End If
    Next line
    theNotesPanel.Refresh()

End Sub 'confidenceLineMenuItem_Click
            ContextNodeCollection lines =
                theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.Line);

            // Mark each line that is not high confidence as thick.
            foreach (LineNode line in lines)
            {
                if (line.InkRecognitionConfidence !=
                    Microsoft.Ink.InkRecognitionConfidence.Strong)
                {
                    foreach (Stroke stroke in line.Strokes)
                    {
                        stroke.DrawingAttributes = new DrawingAttributes(150f);
                    }
                }
            }
            theNotesPanel.Refresh();

平台

Windows Vista

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

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

LineNode 類別

LineNode 成員

Microsoft.Ink 命名空間

InkRecognitionConfidence

Confidence