Compartir a través de


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 ();
}
/** @property */
public RecognitionAlternate get_TopAlternate ()
public function get TopAlternate () : RecognitionAlternate
Not applicable.

Property Value

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.

Example

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

RecognitionResult Class
RecognitionResult Members
Microsoft.Ink Namespace
RecognitionAlternate
RecognitionResult.ModifyTopAlternate