Condividi tramite


Classe RecognitionProperty

Aggiornamento: novembre 2007

Definisce i GUID per le proprietà che un oggetto InkRecognizerBase potrebbe supportare per i risultati del riconoscimento.

Spazio dei nomi:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class RecognitionProperty
'Utilizzo
Dim instance As RecognitionProperty
public sealed class RecognitionProperty
public ref class RecognitionProperty sealed
public final class RecognitionProperty
public final class RecognitionProperty

Note

Questi GUID sono disponibili come campi di sola lettura dell'oggetto. Utilizzare il metodo InkRecognizerBase.GetSupportedProperties per determinare quali proprietà sono supportate da un oggetto InkRecognizerBase.

Utilizzare questi GUID per accedere alle proprietà di un oggetto RecognitionAlternate chiamando il metodo GetPropertyValue.

Esempi

Nell'esempio seguente viene illustrata 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;
    }
}

Gerarchia di ereditarietà

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

Codice thread safe

Qualsiasi membro static (Shared in Visual Basic) pubblico di questo tipo è thread-safe. I membri di istanza non sono garantiti come thread-safe.

Piattaforme

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

Membri RecognitionProperty

Spazio dei nomi System.Windows.Ink.AnalysisCore

InkRecognizerBase.GetSupportedProperties

System.Windows.Ink.AnalysisCore.InkRecognizerCapabilities