Working with a Recognizer Context

The Divider object uses a RecognizerContext to improve its analysis of recognition segments and to generate recognition text for handwriting elements.

You can set the recognizer context by using the RecognizerContext property of the Divider object or by supplying the recognizer context in the call to the Divider constructor (in managed code). If a recognizer context for a non-handwriting recognizer or for a recognizer that does not support the free input capability is assigned to the RecognizerContext property, then an exception is thrown.

If recognizers are not installed or a recognizer context is not assigned to the Divider object, the Divider object does not use a recognizer context. In this case, the layout analysis feature performs the segment division, and no text is associated with the DivisionResult object.

Note

The RecognizerContext property cannot be changed after strokes have been assigned to the Divider object. The Divider object uses the default property values of the RecognizerContext object.

 

The Divider object applies the recognizer context to handwritten elements during layout analysis. Any strokes you assign directly to the recognizer context are ignored by the Divider object. For more information about text recognition, see About Handwriting Recognition.