HandwrittenTextInsertion.InsertRecognitionResultsArray 方法
使用数组插入识别结果。
命名空间: Microsoft.Ink.TextInput
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public Sub InsertRecognitionResultsArray ( _
alternates As String()(), _
culture As CultureInfo, _
alternateContainsAutoSpacingInformation As Boolean _
)
用法
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 void InsertRecognitionResultsArray(
String[][] alternates,
CultureInfo culture,
boolean alternateContainsAutoSpacingInformation
)
public function InsertRecognitionResultsArray(
alternates : String[][],
culture : CultureInfo,
alternateContainsAutoSpacingInformation : boolean
)
参数
- alternates
类型:array<array<System.String[][]
- culture
类型:System.Globalization.CultureInfo
- alternateContainsAutoSpacingInformation
类型:System.Boolean
指定在生成识别文本时是否启用了自动间距调整。如果为 false,将总是在方格的首尾插入空格。如果为 true,则存在空格,并在需要的位置添加空格。如果不存在空格,则耗用一个空格。
示例
下面的示例演示 InsertRecognitionResultsArray 的用法。myHandwrittenTextInsertion 对象是 HandwrittenTextInsertion 的实例。文本插入到应用程序中当前具有焦点的编辑字段。
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);
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0