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 function SetRecognizedString(
newRecognitionString : String
)
Parameters
newRecognitionString
Type: System.StringThe 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.
Examples
The following example takes a string from the TextBox.Text property of a TextBox, correctionTextBox, and uses it to set the recognized string of an InkWordNode, selectedWord.
selectedWord.SetRecognizedString(CorrectionTextBox.Text)
selectedWord.SetRecognizedString(correctionTextBox.Text);
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