Поделиться через


RecognizerContext.RecognitionFlags - свойство

Обновлен: Ноябрь 2007

Gets or sets the flags that specify how the recognizer interprets the ink and determines the result string.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Property RecognitionFlags As RecognitionModes
'Применение
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)

Значение свойства

Тип: 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 nullссылка null (Nothing в 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 nullссылка null (Nothing в Visual Basic) and then set the RecognitionModes flags.

ms572020.alert_note(ru-ru,VS.90).gifПримечание.

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.

ms572020.alert_note(ru-ru,VS.90).gifПримечание.

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 Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

RecognizerContext Класс

RecognizerContext - члены

Microsoft.Ink - пространство имен

RecognizerContext

RecognitionModes

RecognizerContext.Strokes