Share via


RecognitionResult.TopAlternate Property

Gets the top alternate of the recognition result.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly Property TopAlternate As RecognitionAlternate
'Usage
Dim instance As RecognitionResult 
Dim value As RecognitionAlternate 

value = instance.TopAlternate
public RecognitionAlternate TopAlternate { get; }
public:
property RecognitionAlternate^ TopAlternate {
    RecognitionAlternate^ get ();
}
public function get TopAlternate () : RecognitionAlternate

Property Value

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

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

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

[C#]

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

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

[Visual Basic]

theTextBox.Text = theRecognitionResult.TopAlternate.ToString()

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

RecognitionResult Class

RecognitionResult Members

Microsoft.Ink Namespace

RecognitionAlternate

RecognitionResult.ModifyTopAlternate