Share via


HandwrittenTextInsertion.InsertRecognitionResultsArray Method

Inserts recognition results with an array.

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

Syntax

'Declaration
Public Sub InsertRecognitionResultsArray ( _
    alternates As String()(), _
    culture As CultureInfo, _
    alternateContainsAutoSpacingInformation As Boolean _
)
'Usage
Dim instance As HandwrittenTextInsertion 
Dim alternates As String()()
Dim culture As CultureInfo 
Dim alternateContainsAutoSpacingInformation As Boolean

instance.InsertRecognitionResultsArray(alternates, _
    culture, alternateContainsAutoSpacingInformation)
public void InsertRecognitionResultsArray(
    string[][] alternates,
    CultureInfo culture,
    bool alternateContainsAutoSpacingInformation
)
public:
void InsertRecognitionResultsArray(
    array<array<String^>^>^ alternates, 
    CultureInfo^ culture, 
    bool alternateContainsAutoSpacingInformation
)
public function InsertRecognitionResultsArray(
    alternates : String[][], 
    culture : CultureInfo, 
    alternateContainsAutoSpacingInformation : boolean
)

Parameters

  • alternateContainsAutoSpacingInformation
    Type: System.Boolean

    Specifies whether the recognized text was generated with auto-spacing enabled. When false, a space at the start/end of the lattice will always be inserted. When true, a space exists, and is added where necessary. If no space exists, a space is consumed.

Examples

The following example demonstrates the use of InsertRecognitionResultsArray. 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 myAlternates(2)() As String
myAlternates(0) = New String() {"hello", "hello1", "hello2"}
myAlternates(1) = New String() {" "}
myAlternates(2) = New String() {"there", "there1", "there2"}
myHandwrittenTextInsertion.InsertRecognitionResultsArray(myAlternates, System.Globalization.CultureInfo.CurrentCulture, True)
myHandwrittenTextInsertion = new Microsoft.Ink.TextInput.HandwrittenTextInsertion();
string[][] myAlternates = new string[3][];
myAlternates[0] = new string[] { "hello", "hello1", "hello2" };
myAlternates[1] = new string[] { " " };
myAlternates[2] = new string[] { "there", "there1", "there2" };
myHandwrittenTextInsertion.InsertRecognitionResultsArray(myAlternates, 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