This topic has not yet been rated - Rate this topic

InkRecognizerContext.RecognitionFlags property

Applies to: desktop apps only

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

This property is read/write.

Syntax

HRESULT put_RecognitionFlags(
  [in]           InkRecognitionModes Modes
);

HRESULT get_RecognitionFlags(
  [out, retval]  InkRecognitionModes *Modes
);

Property value

The flags that specify how the recognizer interprets the ink and determines the result string.

Error codes

NameMeaning
S_OK

Success.

E_INVALIDARG

The flag is invalid.

E_NOTIMPL

The recognizer does not support this property.

E_OUTOFMEMORY

Cannot allocate memory to complete the operation.

E_FAIL

An unspecified error occurred.

E_INK_EXCEPTION

An exception occurred inside the method.

E_POINTER

The parameter is an invalid out pointer.

E_INVALIDARG

Invalid mode.

E_UNEXPECTED

Unexpected parameter or property type.

TPC_E_OUT_OF_ORDER_CALL

This property cannot be assigned after strokes have been added to the Strokes property.

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 NULL.

For a list of modes that you can use, see the InkRecognitionModes enumeration type.

Note  You can combine modes using the bitwise OR operator.

Requirements

Minimum supported client

Windows XP Tablet PC Edition

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

InkRecognizerContext Class
InkRecognitionModes Enumeration

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.