Condividi tramite


Metodo InkAnalyzer.CreateCustomRecognizer

Aggiornamento: novembre 2007

Crea un nuovo oggetto CustomRecognizerNode per l'analizzatore.

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

Sintassi

'Dichiarazione
Public Function CreateCustomRecognizer ( _
    inkRecognizerId As Guid _
) As CustomRecognizerNode
'Utilizzo
Dim instance As InkAnalyzer
Dim inkRecognizerId As Guid
Dim returnValue As CustomRecognizerNode

returnValue = instance.CreateCustomRecognizer(inkRecognizerId)
public CustomRecognizerNode CreateCustomRecognizer(
    Guid inkRecognizerId
)
public:
CustomRecognizerNode^ CreateCustomRecognizer(
    Guid inkRecognizerId
)
public CustomRecognizerNode CreateCustomRecognizer(
    Guid inkRecognizerId
)
public function CreateCustomRecognizer(
    inkRecognizerId : Guid
) : CustomRecognizerNode

Parametri

Valore restituito

Tipo: System.Windows.Ink.CustomRecognizerNode
Nuova classe CustomRecognizerNode.

Note

L'oggetto CustomRecognizerNode viene creato come elemento figlio diretto di RootNode.

Esempi

In questo esempio viene utilizzato l'oggetto Guid per un sistema di riconoscimento personalizzato, customRecognizerId, e viene creato un oggetto CustomRecognizerNode per l'oggetto InkAnalyzer denominato theInkAnalyzer. Vengono quindi aggiunti i tratti da un insieme StrokeCollection denominato strokesForCustomAnalysis. Quindi, viene chiamato Analyze e la stringa riconosciuta viene inserita in un oggetto TextBox denominato theResultsTextBox.

Dim customRecognizer As CustomRecognizerNode = _
    theInkAnalyzer.CreateCustomRecognizer(customRecognizerId)
theInkAnalyzer.AddStrokesToCustomRecognizer(strokesForCustomAnalysis, customRecognizer)

Dim theStatus As AnalysisStatus = theInkAnalyzer.Analyze()
theResultsTextBox.Text = customRecognizer.GetRecognizedString()
CustomRecognizerNode customRecognizer =
    theInkAnalyzer.CreateCustomRecognizer(customRecognizerId);
theInkAnalyzer.AddStrokesToCustomRecognizer(strokesForCustomAnalysis, customRecognizer);

AnalysisStatus theStatus = theInkAnalyzer.Analyze();
theResultsTextBox.Text = customRecognizer.GetRecognizedString();

Piattaforme

Windows Vista

.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

InkAnalyzer Classe

Membri InkAnalyzer

Spazio dei nomi System.Windows.Ink

System.Windows.Ink.CustomRecognizerNode

System.Windows.Ink.InkRecognizer

InkAnalyzerBaseInkRecognizersByPriority()