AnalysisHintNode.AllowPartialDictionaryTerms 属性

获取或设置一个值,该值指示 InkAnalyzer 是否识别提示区域中的部分字典词条。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public Property AllowPartialDictionaryTerms As Boolean
用法
Dim instance As AnalysisHintNode
Dim value As Boolean

value = instance.AllowPartialDictionaryTerms

instance.AllowPartialDictionaryTerms = value
public bool AllowPartialDictionaryTerms { get; set; }
public:
property bool AllowPartialDictionaryTerms {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_AllowPartialDictionaryTerms()
/** @property */
public  void set_AllowPartialDictionaryTerms(boolean value)
public function get AllowPartialDictionaryTerms () : boolean
public function set AllowPartialDictionaryTerms (value : boolean)

属性值

类型:System.Boolean
如果 InkAnalyzer 识别提示区域中的部分字典词条,则为 true;否则即为 false。默认值为 false。

备注

部分字典词条由字典词条的前几个字母组成。例如,如果“hello”是一个字典词条,并且 AllowPartialDictionaryTerms 为 true,那么“h”、“he”、“hel”和“hell”都是有效的手写识别结果。

分析期间,如果应用于笔画的墨迹识别器不支持部分字典词条,那么墨迹分析器将生成 AnalysisWarning,并且其 WarningCode() 属性设置为 System.Windows.Ink.AnalysisWarningCodePartialDictionaryTermsNotSupported

示例

此示例为 InkAnalyzer(名为 theInkAnalyzerWithHint))创建 AnalysisHintNode(名为 theAnalysisHint)),并将 theAnalysisHint 设为全局提示。然后为提示设置 AllowPartialDictionaryTerms 和 Name 属性。

' Add a new, global analysis hint to theInkAnalyzerWithHint.
Dim theAnalysisHint As AnalysisHintNode = Me.theInkAnalyzerWithHint.CreateAnalysisHint()
theAnalysisHint.Location.MakeInfinite()

theAnalysisHint.AllowPartialDictionaryTerms = True
theAnalysisHint.Name = "Allow Partial Dictionary Terms"
// Add a new, global analysis hint to theInkAnalyzerWithHint.
AnalysisHintNode theAnalysisHint =
    this.theInkAnalyzerWithHint.CreateAnalysisHint();
theAnalysisHint.Location.MakeInfinite();

theAnalysisHint.AllowPartialDictionaryTerms = true;
theAnalysisHint.Name = "Allow Partial Dictionary Terms";

平台

Windows Vista

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

AnalysisHintNode 类

AnalysisHintNode 成员

System.Windows.Ink 命名空间