Partager via


LineNode.InkRecognitionConfidence, propriété

Mise à jour : November 2007

Retourne une valeur qui indique le niveau de fiabilité du InkAnalyzer concernant la précision du résultat de la reconnaissance.

Espace de noms :  Microsoft.Ink
Assembly :  Microsoft.Ink.Analysis (dans Microsoft.Ink.Analysis.dll)

Syntaxe

'Déclaration
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
'Utilisation
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

Valeur de propriété

Type : Microsoft.Ink.InkRecognitionConfidence
Valeur qui indique le niveau de fiabilité du InkAnalyzer concernant la précision du résultat de la reconnaissance.

Exemples

L'exemple suivant parcourt en boucle tous les objets LineNode d'un InkAnalyzer, theInkAnalyzer. Il marque tous les traits des nœuds dans lesquels la fiabilité de la reconnaissance n'est pas Strong en augmentant la largeur des traits.

    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();

Plateformes

Windows Vista

Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Informations de version

.NET Framework

Pris en charge dans : 3.0

Voir aussi

Référence

LineNode, classe

Membres LineNode

Microsoft.Ink, espace de noms

InkRecognitionConfidence

Confidence