Partager via


RecognitionProperty, classe

Mise à jour : November 2007

Définit des identificateurs globaux uniques (GUID) des propriétés qu'un InkRecognizerBase peut prendre en charge pour les résultats de reconnaissance.

Espace de noms :  System.Windows.Ink.AnalysisCore
Assembly :  IACore (dans IACore.dll)

Syntaxe

'Déclaration
Public NotInheritable Class RecognitionProperty
'Utilisation
Dim instance As RecognitionProperty
public sealed class RecognitionProperty
public ref class RecognitionProperty sealed
public final class RecognitionProperty
public final class RecognitionProperty

Notes

Ces GUID sont disponibles comme champs en lecture seule de cet objet. Utilisez la méthode InkRecognizerBase.GetSupportedProperties pour déterminer les propriétés qui sont prises en charge par un InkRecognizerBase.

Utilisez ces GUID pour accéder aux propriétés d'un objet RecognitionAlternate en appelant la méthode GetPropertyValue.

Exemples

L'exemple suivant est une illustration de la classe RecognitionProperty.

' Flags to hold capabilities
Dim hasConfidenceLevel As Boolean = False
Dim hasHotPoint As Boolean = False
Dim hasLineMetrics As Boolean = False
Dim hasLineNumber As Boolean = False
Dim hasMaximumStrokeCount As Boolean = False
Dim hasPointsPerInch As Boolean = False
Dim hasSegmentation As Boolean = False

Dim myInkRecognizerCapabilityGuids() As Guid = myInkRecognizer.GetSupportedProperties()

Dim myTempGuid As Guid = Nothing

Dim i As Integer = 0

While i < myInkRecognizerCapabilityGuids.Length
    myTempGuid = myInkRecognizerCapabilityGuids(i)

    If myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.ConfidenceLevel Then
        hasConfidenceLevel = True
    ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.HotPoint Then
        hasHotPoint = True
    ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.LineMetrics Then
        hasLineMetrics = True
    ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.LineNumber Then
        hasLineNumber = True
    ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.MaximumStrokeCount Then
        hasMaximumStrokeCount = True
    ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.PointsPerInch Then
        hasPointsPerInch = True
    ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.Segmentation Then
        hasSegmentation = True
    End If

    i = i + 1
End While
// Flags to hold capabilities
bool
    hasConfidenceLevel = false,
    hasHotPoint = false,
    hasLineMetrics = false,
    hasLineNumber = false,
    hasMaximumStrokeCount = false,
    hasPointsPerInch = false,
    hasSegmentation = false;

Guid[] myInkRecognizerCapabilityGuids = myInkRecognizer.GetSupportedProperties();

Guid myTempGuid;

for (int i = 0; i < myInkRecognizerCapabilityGuids.Length; i++)
{
    myTempGuid = myInkRecognizerCapabilityGuids[i];

    if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.ConfidenceLevel)
    {
        hasConfidenceLevel = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.HotPoint)
    {
        hasHotPoint = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.LineMetrics)
    {
        hasLineMetrics = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.LineNumber)
    {
        hasLineNumber = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.MaximumStrokeCount)
    {
        hasMaximumStrokeCount = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.PointsPerInch)
    {
        hasPointsPerInch = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.Segmentation)
    {
        hasSegmentation = true;
    }
}

Hiérarchie d'héritage

System.Object
  System.Windows.Ink.AnalysisCore.RecognitionProperty

Sécurité des threads

Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Windows Vista, Windows XP SP2, Windows Server 2003

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

Membres RecognitionProperty

System.Windows.Ink.AnalysisCore, espace de noms

InkRecognizerBase.GetSupportedProperties

System.Windows.Ink.AnalysisCore.InkRecognizerCapabilities