Factoid 类

此类包含预定义的智能标记标识符。无法继承此类。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Public NotInheritable Class Factoid
用法
Dim instance As Factoid
public sealed class Factoid
public ref class Factoid sealed
public final class Factoid
public final class Factoid

备注

备注

对于拉丁语识别器,提供此类中定义的智能标记仅为实现向后兼容性。对于全新的开发,建议使用 InputScope 中定义的值。有关详细信息,请参见Improving Tablet PC Recognition Accuracy by Setting Context

使用这些标识符可以指定在识别过程中使用哪种智能标记。

下列智能标记组合仅支持西方语言。这些智能标记组合没有单独的定义,是使用智能标记的对象的 Factoid 属性可接受的字符串文本输入。这些智能标记字符串常量允许输入内容匹配表达式中的任何智能标记。

组合

定义

"WEB|WORDLIST"

Web 智能标记或单词列表。

"EMAIL|WORDLIST"

Email 智能标记或单词列表。

"FILENAME|WEB|WORDLIST">

Filename 智能标记或者 Web 智能标记或单词列表。

如果使用的是 InkEdit 控件,则智能标记可设置为该控件的属性。

mInkEdit.Factoid = Factoid.Hiragana
mInkEdit.Factoid = Factoid.Hiragana;

如果使用的是 Tablet PC Platform API,可在 RecognizerContext 对象上设置 Factoid 属性。

mRecognizerContext.Factoid = Factoid.PostalCode
mRecognizerContext.Factoid = Factoid.PostalCode;

或者,可以使用实际智能标记字符串常量设置此属性。

mRecognizerContext.Factoid = "POSTALCODE"
mRecognizerContext.Factoid = "POSTALCODE";

备注

智能标记字符串常量区分大小写。有关智能标记及其用法的更多信息,请参见Improving Tablet PC Recognition Accuracy by Setting Context。若要确定某智能标记在特定语言中是否可用,请参见Supported Factoids from Version 1

继承层次结构

System.Object
  Microsoft.Ink.Factoid

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

Factoid 成员

Microsoft.Ink 命名空间

RecognizerContext.Factoid

InkEdit.Factoid

其他资源

Improving Tablet PC Recognition Accuracy by Setting Context

Supported Factoids from Version 1