InkWordNode.SetRecognizedString Method
Adds a new user-defined string for the recognized value of the InkWordNode.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.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 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 XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
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