ParagraphNode.InkRecognitionConfidence Property
Gets a value that indicates the level of confidence that the InkAnalyzer has in the accuracy of the recognition result.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'Usage
Dim instance As ParagraphNode
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: System.Windows.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 ParagraphNode objects from an InkAnalyzer, theInkAnalyzer, and marks all of the strokes from nodes in which the recognition confidence is not Strong by rendering those strokes with a thick width.
Dim paragraphs As ContextNodeCollection = _
theInkAnalyzer.FindNodesOfType(ContextNodeType.Paragraph)
' Mark each paragraph that is not high confidence as thick.
Dim paragraph As ParagraphNode
For Each paragraph In paragraphs
If paragraph.InkRecognitionConfidence <> InkRecognitionConfidence.Strong Then
Dim stroke As Stroke
For Each stroke In paragraph.Strokes
stroke.DrawingAttributes.Height = 3F
stroke.DrawingAttributes.Width = 3F
Next stroke
End If
Next paragraph
ContextNodeCollection paragraphs =
theInkAnalyzer.FindNodesOfType(ContextNodeType.Paragraph);
// Mark each paragraph that is not high confidence as thick.
foreach (ParagraphNode paragraph in paragraphs)
{
if (paragraph.InkRecognitionConfidence !=
InkRecognitionConfidence.Strong)
{
foreach (Stroke stroke in paragraph.Strokes)
{
stroke.DrawingAttributes.Height = 3f;
stroke.DrawingAttributes.Width = 3f;
}
}
}
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
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