AnalysisHintNode.CoerceToFactoid - свойство
Обновлен: Ноябрь 2007
Gets or sets a value indicating whether the InkAnalyzer limits its analysis of ink within the hint's area to conform to the hint's Factoid property.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Property CoerceToFactoid As Boolean
'Применение
Dim instance As AnalysisHintNode
Dim value As Boolean
value = instance.CoerceToFactoid
instance.CoerceToFactoid = value
public bool CoerceToFactoid { get; set; }
public:
property bool CoerceToFactoid {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_CoerceToFactoid()
/** @property */
public void set_CoerceToFactoid(boolean value)
public function get CoerceToFactoid () : boolean
public function set CoerceToFactoid (value : boolean)
Значение свойства
Тип: System.Boolean
true if the InkAnalyzer restricts its analysis of ink within the hint's area to conform to the hint's Factoid property; otherwise, false. The default is false.
Заметки
If CoerceToFactoid is false and Factoid is set to non-empty string, the InkAnalyzer extends its analysis to also allow results that conform to the hint's factoid.
During analysis, if the ink recognizer applied to the strokes does not support factoid coercion, the ink analyzer generates an AnalysisWarning with its WarningCode property set to the Microsoft.Ink.AnalysisWarningCode value FactoidCoercionNotSupported.
Примеры
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