Condividi tramite


Strokes.ToString Method

Strokes.ToString Method

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

Definition

Visual Basic .NET Overrides Public Function ToString() As String
C# public override string ToString();
Managed C++ public: String* ToString();

Return Value

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

Exceptions

ObjectDisposedException Leave Site:

Remarks

Caution: 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 null (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

[C#]

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

theTextBox.Text = theStrokes.ToString();

                

[VB.NET]

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

theTextBox.Text = theStrokes.ToString()
                

See Also