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 function CreateCustomRecognizer(
inkRecognizerId : Guid
) : ContextNodeBase
Parameters
inkRecognizerId
Type: System.GuidThe globally unique identifier (GUID) of the InkRecognizerBase for which to create a node.
Return Value
Type: System.Windows.Ink.AnalysisCore.ContextNodeBase
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.
Examples
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 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
System.Windows.Ink.AnalysisCore Namespace
System.Windows.Ink.AnalysisCore.ContextNodeBase