InkWordNode.InkRecognitionConfidence Property
Gets a value that indicates the level of confidence that the InkAnalyzer has in the accuracy of the recognition result.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'Usage
Dim instance As InkWordNode
Dim value As InkRecognitionConfidence
value = instance.InkRecognitionConfidence
public InkRecognitionConfidence InkRecognitionConfidence { get; }
public:
property InkRecognitionConfidence InkRecognitionConfidence {
InkRecognitionConfidence get ();
}
public function get InkRecognitionConfidence () : InkRecognitionConfidence
Property Value
Type: Microsoft.Ink.InkRecognitionConfidence
The value that indicates the level of confidence that the InkAnalyzer has in the accuracy of the recognition result.
Examples
The following example loops through all InkWordNode objects from an InkAnalyzer, theInkAnalyzer. It marks all of the strokes from nodes in which the recognition confidence is not Strong by making the strokes have a thick width.
Dim inkWords As ContextNodeCollection = _
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.InkWord)
' Mark each word that is not high confidence as thick.
Dim inkWord As InkWordNode
For Each inkWord In inkWords
If inkWord.InkRecognitionConfidence <> _
Microsoft.Ink.InkRecognitionConfidence.Strong Then
Dim inkStroke As Stroke
For Each inkStroke In inkWord.Strokes
inkStroke.DrawingAttributes = New DrawingAttributes(150.0F)
Next inkStroke
End If
Next inkWord
theNotesPanel.Refresh()
End Sub 'recoConfidenceMenuItem_Click
ContextNodeCollection inkWords =
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.InkWord);
// Mark each word that is not high confidence as thick.
foreach (InkWordNode inkWord in inkWords)
{
if (inkWord.InkRecognitionConfidence !=
Microsoft.Ink.InkRecognitionConfidence.Strong)
{
foreach (Stroke stroke in inkWord.Strokes)
{
stroke.DrawingAttributes = new DrawingAttributes(150f);
}
}
}
theNotesPanel.Refresh();
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0