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 function CreateCustomRecognizer(
    inkRecognizerId : Guid
) : CustomRecognizerNode

Parameters

  • inkRecognizerId
    Type: System.Guid

    The globally unique identifier (GUID) identifying the InkRecognizer for which a node is created.

Return Value

Type: System.Windows.Ink.CustomRecognizerNode
The new CustomRecognizerNode.

Remarks

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

Examples

The following example uses the Guid for a custom recognizer, customRecognizerId, and creates a CustomRecognizerNode for an InkAnalyzer named theInkAnalyzer. Strokes from a StrokeCollection named strokesForCustomAnalysis are then added. Then Analyze is called, and the recognized string is stored in TextBox, named 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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

InkAnalyzerBaseInkRecognizersByPriority