Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
A node can contain he following types of child elements:
Any number of Unclassified Ink nodes.
Any number of Object nodes.
Any number of Line nodes.
Any number of InkWord nodes.
Any number of nodes with an unknown Guid value.
A object must be the direct child of the RootNode.
The simplest way to create a custom recognizer is to use InkAnalyzer.CreateCustomRecognizer to create the recognizer and InkAnalyzer.AddStrokesToCustomRecognizer to assign strokes to it. If any stroke that you add is already assigned to any node in the InkAnalyzer context tree, including an UnclassifiedInkNode, an ArgumentException is thrown. To avoid this, use InkAnalyzer.RemoveStroke or InkAnalyzer.RemoveStrokes to remove those strokes from the InkAnalyzer context tree before adding them to the custom recognizer.
The following example takes a Guid for a custom recognizer, customRecognizerId, and creates a with it for an InkAnalyzer, theInkAnalyzer. Strokes are then added from a Strokes collection, strokesForCustomAnalysis. Then Analyze is called and the recognized string is put into a TextBox, theResultsTextBox.
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
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.