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


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

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

Gets or sets a value indicating whether the InkAnalyzer prioritizes single word results over multiple word results within this area.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)

Синтаксис

'Декларация
Public Property WordMode As Boolean
'Применение
Dim instance As AnalysisHintNode
Dim value As Boolean

value = instance.WordMode

instance.WordMode = value
public bool WordMode { get; set; }
public:
property bool WordMode {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_WordMode()
/** @property */
public  void set_WordMode(boolean value)
public function get WordMode () : boolean
public function set WordMode (value : boolean)

Значение свойства

Тип: System.Boolean
true if the InkAnalyzer prioritizes single word results over multiple word results when analyzing ink within this area; otherwise, false. The default is false.

Заметки

If WordMode is true, the InkAnalyzer may return multiple word results for ink within the hint's area. If CoerceToFactoid is also true, then the InkAnalyzer returns only single word results for ink within the hint's area.

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

Примеры

This example creates an AnalysisHintNode, theAnalysisHint, for the InkAnalyzer, theInkAnalyzerWithHint, and makes theAnalysisHint a global hint. It then sets the WordMode 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.WordMode = True
theAnalysisHint.Name = "Word Mode"
// Add a new, global analysis hint to theInkAnalyzerWithHint.
Microsoft.Ink.AnalysisHintNode theAnalysisHint =
    this.theInkAnalyzerWithHint.CreateAnalysisHint();
theAnalysisHint.Location.MakeInfinite();

theAnalysisHint.WordMode = true;
theAnalysisHint.Name = "Word Mode";

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

AnalysisHintNode Класс

AnalysisHintNode - члены

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