Share via


Strokes.ToString Method

Deprecated. Returns a string that represents the top RecognitionResult object for the current Strokes collection.

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

Syntax

'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As Strokes 
Dim returnValue As String 

returnValue = instance.ToString()
public override string ToString()
public:
virtual String^ ToString() override
public override function ToString() : String

Return Value

Type: System.String
Returns a string that represents the top RecognitionResult object for the current Strokes collection.

Remarks

Warning

The Strokes.ToString method is deprecated. It should not be used for handwriting recognition applications; however, it can be used for debugging purposes.

When you call the ToString method, the default Recognizer object performs recognition on the Strokes collection. The return value is a string representation of the TopAlternate property of the RecognitionResult for the current Strokes collection.

The ToString method of the Strokes collection returns nulla null reference (Nothing in Visual Basic) (Nothing in Microsoft Visual Basic.NET) if:

  • The Strokes collection is empty.

  • A default recognizer cannot be created.

  • The default recognizer does not support free input.

Note

The return value does not reflect any changes to the user dictionary or to the input locale during the lifetime of the corresponding Ink object.

Examples

This C# example displays the string recognized from the Strokes collection, theStrokes, into a TextBox control, theTextBox.

theTextBox.Text = theStrokes.ToString();

This Visual Basic .NET example displays the string recognized from the Strokes collection, theStrokes, into a TextBox control, theTextBox.

theTextBox.Text = theStrokes.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

Strokes Class

Strokes Members

Microsoft.Ink Namespace

Recognizer