Gets or sets the flags that specify how the recognizer interprets the ink and determines the result string.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
The property gets or sets flags that specify things such as whether the recognizer treats all ink as a single word or whether the recognizer coerces the result based on the factoid that you specified for the context.
Setting the property succeeds only if the Strokes property is null. You must set the property before you attach a Strokes collection to the Strokes property of the RecognizerContext, or you must set the Strokes property to null and then set the RecognitionModes flags.
For a list of modes that you can use, see the RecognitionModes enumeration type.
You can combine modes using the bitwise OR operator.
In this example, a RecognizerContext object is instantiated, the Factoid property set to bias recognition in favor of a telephone number. The property is then set to RecognitionModes enumeration member Coerce. This forces recognition to return a telephone number.
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.