Share via


InkAnalyzerBase.CreateCustomRecognizer Method

Creates a new custom recognizer node for the analyzer.

Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in iacore.dll)

Syntax

'Declaration
Public Function CreateCustomRecognizer ( _
    inkRecognizerId As Guid _
) As ContextNodeBase
'Usage
Dim instance As InkAnalyzerBase
Dim inkRecognizerId As Guid
Dim returnValue As ContextNodeBase

returnValue = instance.CreateCustomRecognizer(inkRecognizerId)
public ContextNodeBase CreateCustomRecognizer (
    Guid inkRecognizerId
)
public:
ContextNodeBase^ CreateCustomRecognizer (
    Guid inkRecognizerId
)
public ContextNodeBase CreateCustomRecognizer (
    Guid inkRecognizerId
)
public function CreateCustomRecognizer (
    inkRecognizerId : Guid
) : ContextNodeBase
Not applicable.

Parameters

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

Remarks

This method creates a new ContextNodeBase with a Type property value of CustomRecognizer. It then adds the new custom recognizer node to the SubNodes collection of the ink analyzer's RootNode.

Example

The following example creates a custom recognizer node for the InkAnalyzerBase, theInkAnalyzerBase. It creates the node only if the analyzer's GetInkRecognizersByPriority method returns an InkRecognizerBaseCollection that contains a Japanese ink recognizer

' Add a custom recognizer node for Japanese, which has a locale
' identifier of 0x0011.
Dim theInkRecognizer As System.Windows.Ink.AnalysisCore.InkRecognizerBase = _
    theInkAnalyzerBase.GetInkRecognizersByPriority().GetPriorityInkRecognizer(&H11)
Dim theCustomRecognizerNode As System.Windows.Ink.AnalysisCore.ContextNodeBase = Nothing
If Nothing IsNot theInkRecognizer Then
    theCustomRecognizerNode = _
        theInkAnalyzerBase.CreateCustomRecognizer(theInkRecognizer.Guid)
End If
// Add a custom recognizer node for Japanese, which has a locale
// identifier of 0x0011.
System.Windows.Ink.AnalysisCore.InkRecognizerBase theInkRecognizer =
    theInkAnalyzerBase.GetInkRecognizersByPriority().GetPriorityInkRecognizer(0x0011);
System.Windows.Ink.AnalysisCore.ContextNodeBase theCustomRecognizerNode = null;
if (null != theInkRecognizer)
{
    theCustomRecognizerNode =
        theInkAnalyzerBase.CreateCustomRecognizer(theInkRecognizer.Guid);
}

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

InkAnalyzerBase Class
InkAnalyzerBase Members
System.Windows.Ink.AnalysisCore Namespace
System.Windows.Ink.AnalysisCore.ContextNodeBase
System.Windows.Ink.AnalysisCore.InkRecognizerBase
InkAnalyzerBase.GetInkRecognizersByPriority