다음을 통해 공유


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)

Syntax

'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);
}
/** @property */
public RecognitionModes get_RecognitionFlags ()

/** @property */
public void set_RecognitionFlags (RecognitionModes value)
public function get RecognitionFlags () : RecognitionModes

public function set RecognitionFlags (value : RecognitionModes)
Not applicable.

Property Value

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.

Remarks

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 a 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 a null reference (Nothing in Visual Basic) and then set the RecognitionModes flags.

Note

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.

Note

You can combine modes using the bitwise OR operator.

Example

This C# example sets the RecognitionFlags property of the RecognizerContext object, theRecognizerContext, to WordMode mode.

theRecognizerContext.RecognitionFlags = RecognitionModes.WordMode;

This Microsoft® Visual Basic® .NET example sets the RecognitionFlags property of the RecognizerContext object, theRecognizerContext, to WordMode mode.

theRecognizerContext.RecognitionFlags = RecognitionModes.WordMode

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

RecognizerContext Class
RecognizerContext Members
Microsoft.Ink Namespace
RecognitionModes
RecognizerContext.Strokes