Share via


RecognizerContext Members

Enables the ability to perform ink recognition, retrieve the recognition result, and retrieve alternates. The RecognizerContext enables the various recognizer that are installed on a system to use ink recognition to process input appropriately.

The following tables list the members exposed by the RecognizerContext type.

Public Constructors

  Name Description
Public method RecognizerContext Initializes a new instance of the RecognizerContext class.

Top

Public Properties

  Name Description
Public property CharacterAutoCompletion Gets or sets the character Autocomplete mode, which determines when characters or words are recognized.
Public property Factoid Gets or sets the string name of the factoid used by the RecognizerContext object.
Public property Guide Gets or sets the RecognizerGuide to use for ink input.
Public property PrefixText Gets or sets the characters that come before the Strokes collection in the RecognizerContext object.
Public property RecognitionFlags Gets or sets the flags that specify how the recognizer interprets the ink and determines the result string.
Public property Recognizer Gets the Recognizer object used by the RecognizerContext object.
Public property Strokes Gets or sets the Strokes collection associated with the RecognizerContext object.
Public property SuffixText Gets or sets the characters that come after the Strokes collection in the RecognizerContext object.
Public property WordList Gets or sets the WordList object that is used to improve the recognition results.

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method BackgroundRecognize Overloaded. Causes the Recognizer object to recognize the associated Strokes collection and raise a Recognition event when recognition is complete.
Public method BackgroundRecognizeWithAlternates Overloaded. Causes the Recognizer object to recognize the associated Strokes collection and raise a RecognitionWithAlternates event when recognition is complete.
Public method Clone Creates a copy of this RecognizerContext object.
Public method Dispose Overloaded. Releases resources used by the RecognizerContext object.
Public method EndInkInput Ends ink input to the RecognizerContext object.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetEnabledUnicodeRanges Returns an array of UnicodeRange that the recognizer supports.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IsStringSupported Returns a value that indicates whether the system dictionary, user dictionary, or WordList contain a specified string.
Public method Recognize Returns a RecognitionResult object for a Strokes collection.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SetEnabledUnicodeRanges Enables one or more Unicode ranges on the context.
Public method StopBackgroundRecognition Ends background recognition that was started with a call to BackgroundRecognize or BackgroundRecognizeWithAlternates.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)

Top

Protected Methods

  Name Description
Protected method Dispose Overloaded. Releases resources used by the RecognizerContext object.
Protected method Finalize Overridden. Frees the resources of the current RecognizerContext object before it is reclaimed by the garbage collector.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)

Top

Public Events

  Name Description
Public event Recognition Occurs when the RecognizerContext object has generated results from the BackgroundRecognize method.
Public event RecognitionWithAlternates Occurs when the RecognizerContext object has generated results after calling the BackgroundRecognizeWithAlternates method.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implementation Method System.ICloneable.Clone Creates a new object that is a copy of the current instance.

Top

See Also

Reference

RecognizerContext Class
Microsoft.Ink Namespace
Recognizer
Strokes