RecognitionModes Enumeration
Defines values that specify how the recognizer interprets the ink and determines the result string. This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration RecognitionModes
'Usage
Dim instance As RecognitionModes
[FlagsAttribute]
public enum RecognitionModes
[FlagsAttribute]
public enum class RecognitionModes
/** @attribute FlagsAttribute() */
public enum RecognitionModes
FlagsAttribute
public enum RecognitionModes
Members
Member name | Description | |
---|---|---|
AutoSpace | Specifies the recognizer should perform auto-spacing. | |
Coerce | Specifies that the recognizer coerces the result based on the factoid that you specified for the context. For example, if the Telephone factoid is specified and the user enters the word hello, the recognizer may return a random phone number or an empty string. If this flag is not specified, the recognizer returns hello as the result. Input scopes and factoids are restrictions on the word level alternates; character alternates may be outside the input scope specified even when COERCE is on. | |
DisablePersonalization | Disables personalization on the recognizer. | |
LineMode | Specifies that no line breaking occurs inside the recognizer and all of the ink is recognized as one line. | |
None | Specifies that the recognizer applies no recognition modes. | |
PrefixOk | Apply partial word recognition. | |
TopInkBreaksOnly | Disables multiple segmentation. This turns off the recognizer's ability to return recognition results based on more than one recognition segment of the ink, where each segment corresponds to a word (in recognizers of Latin script) or a character (in recognizers of East Asian characters). The word "together" always returns alternates based on "together" being a single word, and the recognizer does not consider the string might also be "to get her" or some other variation with differing segmentation. Turning on this flag enhances recognition speed. | |
WordMode | Specifies that the recognizer treats the ink as a single word. For example, if the context contains "to get her", the recognizer returns "together". |
Remarks
Note
Some compound words in the dictionary are treated as single words by recognizers of Latin script. For example, recognizers of Latin script treat "Los Angeles" as a single word if you use the WordMode flag. In addition, certain factoids—such as the Date Factoid in English (United Kingdom), English (United States), German, and French—treat some multiple word dates as single words. For example, these recognizers treat "January 21, 2000" as a single word if you use the WordMode flag.
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
Microsoft.Ink Namespace
Factoid
WordList
RecognizerContext.RecognitionFlags