Strokes.ToString - метод
Обновлен: Ноябрь 2007
Deprecated. Returns a string that represents the top RecognitionResult object for the current Strokes collection.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Overrides Function ToString As String
'Применение
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
Возвращаемое значение
Тип: System.String
Returns a string that represents the top RecognitionResult object for the current Strokes collection.
Заметки
Предупреждение
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ссылка null (Nothing в 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.
![]() |
---|
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. |
Примеры
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()
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0