Freigeben über


InkWordNode.SetRecognizedString Method

Adds a new user-defined string for the recognized value of the InkWordNode.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)

Syntax

'Declaration
Public Sub SetRecognizedString ( _
    newRecognitionString As String _
)
'Usage
Dim instance As InkWordNode
Dim newRecognitionString As String

instance.SetRecognizedString(newRecognitionString)
public void SetRecognizedString (
    string newRecognitionString
)
public:
void SetRecognizedString (
    String^ newRecognitionString
)
public void SetRecognizedString (
    String newRecognitionString
)
public function SetRecognizedString (
    newRecognitionString : String
)
Not applicable.

Parameters

  • newRecognitionString
    The new user-defined string.

Remarks

Use this method if there is no AnalysisAlternate object with the RecognizedString that the user wants for this InkWordNode.

Calling SetRecognizedString creates a new AnalysisAlternate object for this InkWordNode. Calling SetRecognizedString multiple times creates multiple AnalysisAlternate objects.

The InkRecognitionConfidence for the new AnalysisAlternate object will be Strong.

Example

The following example takes a string from the TextBox.TextTextBox.Text property of a TextBoxTextBox, correctionTextBox, and uses it to set the recognized string of an InkWordNode, selectedWord.

selectedWord.SetRecognizedString(CorrectionTextBox.Text)
selectedWord.SetRecognizedString(correctionTextBox.Text);

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

InkWordNode Class
InkWordNode Members
Microsoft.Ink Namespace
InkWordNode.GetRecognizedString