다음을 통해 공유


TopConfidence Property

TopConfidence Property

Gets the confidence level of the TopAlternate property of the IInkRecognitionResult object.

Declaration

[C++]

[C++]
[propget] HRESULT get_TopConfidence([out,retval]InkRecognitionConfidence* TopConfidence);

[Microsoft® Visual Basic® 6.0]

[Visual Basic]
Public Property Get TopConfidence() As InkRecognitionConfidence

Property Value

InkRecognitionConfidence The confidence level of the TopAlternate property of the IInkRecognitionResult object.

This property is read-only.

Return Value

HRESULT value Description
S_OK Success.
E_POINTER The parameter pointer was invalid.
E_INK_EXCEPTION An exception occurred inside the method.
E_NOTIMPL The recognizer that generated this result does not support confidence levels.

Remarks

Of the Microsoft recognizers, only the Microsoft English (US) Handwriting Recognizer and the Microsoft Gesture Recognizer support confidence levels. Third party recognizers may or may not support confidence levels.

Note: The TopConfidence property may change if a call to the ModifyTopAlternateMethod method causes a change to the TopAlternate property.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example checks the confidence value of an IInkRecognitionResult.

[Visual Basic]
If theRecognitionResult.TopConfidence = IRC_Poor Then
    'Discount this result...

Applies To