InkAnalyzer.CreateCustomRecognizer Method

Creates a new CustomRecognizerNode for the analyzer.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)

Syntax

'Declaration
Public Function CreateCustomRecognizer ( _
    inkRecognizerId As Guid _
) As CustomRecognizerNode
'Usage
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
Not applicable.

Parameters

  • inkRecognizerId
    The globally unique identifier (GUID) of the InkRecognizer for which to create a node.

Return Value

The new CustomRecognizerNode.

Remarks

The CustomRecognizerNode object is created as a direct child of the RootNode.

Example

The following example takes the Guid for a custom recognizer, customRecognizerId, and creates a CustomRecognizerNode with it for an InkAnalyzer, theInkAnalyzer. Strokes are then added from a StrokeCollection collection, strokesForCustomAnalysis. Then Analyze is called and the recognized string is put into a TextBox, 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();

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class
InkAnalyzer Members
System.Windows.Ink Namespace
System.Windows.Ink.CustomRecognizerNode
System.Windows.Ink.InkRecognizer
System.Windows.Ink.InkAnalyzerBase.InkRecognizersByPriority