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


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

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

Gets or sets the prefix text that the InkAnalyzer uses to analyze ink within this area.

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

Синтаксис

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

value = instance.PrefixText

instance.PrefixText = value
public string PrefixText { get; set; }
public:
property String^ PrefixText {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_PrefixText()
/** @property */
public  void set_PrefixText(String value)
public function get PrefixText () : String
public function set PrefixText (value : String)

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

Тип: System.String
The prefix text that the InkAnalyzer uses to analyze ink within this area. The default is an empty string ("").

Заметки

In languages that have spaces between words, if the prefix text does not end with a space, the InkAnalyzer analyzes the strokes in the hint as if they were a continuation of the characters of the prefix text.

The prefix and suffix text can be used as part of an interface to help correct user input.

During analysis, if the ink recognizer applied to the strokes does not support prefix or suffix text, the ink analyzer generates an AnalysisWarning with its WarningCode property set to the System.Windows.Ink.AnalysisCore.AnalysisWarningCode value of SetPrefixSuffixFailed.

Примеры

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

theAnalysisHint.PrefixText = "the ";
theAnalysisHint.SuffixText = "ing";
theAnalysisHint.Name = "Prefix and Suffix Text";

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

AnalysisHintNode Класс

AnalysisHintNode - члены

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