AnalysisHintNode.Factoid 属性

获取或设置智能标记的字符串名称,InkAnalyzer 使用该智能标记分析当前区域中的墨迹。

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

语法

声明
Public Property Factoid As String
用法
Dim instance As AnalysisHintNode
Dim value As String

value = instance.Factoid

instance.Factoid = value
public string Factoid { get; set; }
public:
property String^ Factoid {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Factoid()
/** @property */
public  void set_Factoid(String value)
public function get Factoid () : String
public function set Factoid (value : String)

属性值

类型:System.String
InkAnalyzer 用以分析当前区域中墨迹的智能标记的字符串名称。默认值为空字符串 ("")。

备注

若要移除智能标记,请将此属性设置为空字符串。有关可用智能标记值的信息,请参见Using Context to Improve Accuracy

分析期间,如果应用于笔画的墨迹识别器不支持特定智能标记,那么墨迹分析器将生成 AnalysisWarning,并且其 WarningCode() 属性设置为 System.Windows.Ink.AnalysisWarningCodeFactoidNotSupported

示例

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

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

theAnalysisHint.Factoid = "(!IS_DATE_FULLDATE)"
theAnalysisHint.CoerceToFactoid = True
theAnalysisHint.Name = "Coerce to Factoid"
// Add a new, global analysis hint to theInkAnalyzerWithHint.
AnalysisHintNode theAnalysisHint =
    this.theInkAnalyzerWithHint.CreateAnalysisHint();
theAnalysisHint.Location.MakeInfinite();

theAnalysisHint.Factoid = "(!IS_DATE_FULLDATE)";
theAnalysisHint.CoerceToFactoid = true;
theAnalysisHint.Name = "Coerce to Factoid";

平台

Windows Vista

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

AnalysisHintNode 类

AnalysisHintNode 成员

System.Windows.Ink 命名空间