Freigeben über


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 String ToString ()
public override function ToString () : String
Not applicable.

Return Value

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 a 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.

Example

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

theTextBox.Text = theStrokes.ToString();

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

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

Strokes Class
Strokes Members
Microsoft.Ink Namespace
Recognizer