RecognizerContext.RecognitionFlags Property
Gets or sets the flags that specify how the recognizer interprets the ink and determines the result string.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
'Declaration
Public Property RecognitionFlags As RecognitionModes
'Usage
Dim instance As RecognizerContext
Dim value As RecognitionModes
value = instance.RecognitionFlags
instance.RecognitionFlags = value
public RecognitionModes RecognitionFlags { get; set; }
public:
property RecognitionModes RecognitionFlags {
RecognitionModes get ();
void set (RecognitionModes value);
}
public function get RecognitionFlags () : RecognitionModes
public function set RecognitionFlags (value : RecognitionModes)
Type: Microsoft.Ink.RecognitionModes
A member of the RecognitionModes enumeration, which gets or sets the flags that specify how the recognizer interprets the ink and determines the result string.
The RecognitionFlags 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 RecognitionFlags property succeeds only if the Strokes property is nulla null reference (Nothing in Visual Basic). You must set the RecognitionFlags property before you attach a Strokes collection to the Strokes property of the RecognizerContext, or you must set the Strokes property to nulla null reference (Nothing in Visual Basic) and then set the RecognitionModes flags.
Poznámka
If you use the latter method, you may need to reattach the Strokes collection to the Strokes property of the RecognizerContext.
For a list of modes that you can use, see the RecognitionModes enumeration type.
Poznámka
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 RecognitionFlags property is then set to RecognitionModes enumeration member Coerce. This forces recognition to return a telephone number.
Dim RC As RecognizerContext = New RecognizerContext()
RC.Factoid = "(!IS_TELEPHONE_LOCALNUMBER)"
RC.RecognitionFlags = RecognitionModes.Coerce
RecognizerContext RC = new RecognizerContext();
RC.Factoid = "(!IS_TELEPHONE_LOCALNUMBER)";
RC.RecognitionFlags = RecognitionModes.Coerce;
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.
Supported in: 3.0