Condividi tramite


RecognitionResult.TopAlternate Property

RecognitionResult.TopAlternate Property

Gets the top alternate of the recognition result.

Definition

Visual Basic .NET Public ReadOnly Property TopAlternate As RecognitionAlternate
C# public RecognitionAlternate TopAlternate { get; }
Managed C++ public: __property RecognitionAlternate* get_TopAlternate();

Property Value

Microsoft.Ink.RecognitionAlternate. The top alternate of the recognition result.

This property is read-only. This property has no default value.

Exceptions

COMException Leave Site:

Remarks

When the recognizer returns a recognition result, the recognition alternates are ranked from the highest confidence level to the lowest confidence level. The recognition alternate with the highest confidence level is selected as the top alternate.

You can use the ModifyTopAlternate method to change which recognition alternate is the top alternate.

Examples

[C#]

This C# example copies the text of the top alternate of the RecognitionResult object, theRecognitionResult, into the text box, theTextBox.

theTextBox.Text = theRecognitionResult.TopAlternate.ToString();

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example copies the text of the top alternate of the RecognitionResult object, theRecognitionResult, into the text box, theTextBox.

theTextBox.Text = theRecognitionResult.TopAlternate.ToString()

See Also