Share via


HandwrittenTextInsertion.InsertInkRecognitionResult Method

Inserts recognition results.

Namespace:  Microsoft.Ink.TextInput
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Sub InsertInkRecognitionResult ( _
    recognitionResult As RecognitionResult, _
    culture As CultureInfo, _
    alternateContainsAutoSpacingInformation As Boolean _
)
'Usage
Dim instance As HandwrittenTextInsertion 
Dim recognitionResult As RecognitionResult 
Dim culture As CultureInfo 
Dim alternateContainsAutoSpacingInformation As Boolean

instance.InsertInkRecognitionResult(recognitionResult, _
    culture, alternateContainsAutoSpacingInformation)
public void InsertInkRecognitionResult(
    RecognitionResult recognitionResult,
    CultureInfo culture,
    bool alternateContainsAutoSpacingInformation
)
public:
void InsertInkRecognitionResult(
    RecognitionResult^ recognitionResult, 
    CultureInfo^ culture, 
    bool alternateContainsAutoSpacingInformation
)
public function InsertInkRecognitionResult(
    recognitionResult : RecognitionResult, 
    culture : CultureInfo, 
    alternateContainsAutoSpacingInformation : boolean
)

Parameters

  • alternateContainsAutoSpacingInformation
    Type: System.Boolean

    Specifies whether the recognized text was generated with auto-spacing that is enabled.. true if auto-spacing is enabled; otherwise, false.

Examples

The following example demonstrates the use of InsertInkRecognitionResult. The myHandwrittenTextInsertion object is an instance of HandwrittenTextInsertion. The text is inserted into the edit field that is currently in focus within the application.

myHandwrittenTextInsertion = New Microsoft.Ink.TextInput.HandwrittenTextInsertion()
Dim recoResult As RecognitionResult = myInkCollector.Ink.Strokes.RecognitionResult
Dim context As New RecognizerContext()
context.RecognitionFlags = RecognitionModes.AutoSpace
context.Strokes = myInkCollector.Ink.Strokes
Dim recoStatus As RecognitionStatus
recoResult = context.Recognize(recoStatus)
myHandwrittenTextInsertion.InsertInkRecognitionResult(recoResult, System.Globalization.CultureInfo.CurrentCulture, True)
myHandwrittenTextInsertion = new Microsoft.Ink.TextInput.HandwrittenTextInsertion();
RecognitionResult recoResult = myInkCollector.Ink.Strokes.RecognitionResult;
RecognizerContext context = new RecognizerContext();
context.RecognitionFlags = RecognitionModes.AutoSpace;
context.Strokes = myInkCollector.Ink.Strokes;
RecognitionStatus recoStatus;
recoResult = context.Recognize(out recoStatus);
myHandwrittenTextInsertion.InsertInkRecognitionResult(recoResult, System.Globalization.CultureInfo.CurrentCulture, true);

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

See Also

Reference

HandwrittenTextInsertion Class

HandwrittenTextInsertion Members

Microsoft.Ink.TextInput Namespace