Поделиться через


AnalysisHintNode.Factoid - свойство

Обновлен: Ноябрь 2007

Gets or sets the string name of the factoid that the InkAnalyzer uses to analyze ink within this area.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.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
The string name of the factoid the InkAnalyzer uses to analyze ink within this area. The default is an empty string ("").

Заметки

To remove a factoid, set this property to the empty string. For information about available factoid values, see Using Context to Improve Accuracy.

During analysis, if the ink recognizer applied to the strokes does not support the specified factoid, the ink analyzer generates an AnalysisWarning with its WarningCode property set to the Microsoft.Ink.AnalysisWarningCode value of FactoidNotSupported.

Примеры

This example creates an AnalysisHintNode, theAnalysisHint, for the InkAnalyzer, theInkAnalyzerWithHint, and makes theAnalysisHint a global hint. It then sets the CoerceToFactoid, Factoid, and Name properties on the hint.

' Add a new, global analysis hint to theInkAnalyzerWithHint.
Dim theAnalysisHint As Microsoft.Ink.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.
Microsoft.Ink.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 - члены

Microsoft.Ink - пространство имен