InkAnalyzer.CreateAnalysisHint - метод (Rectangle)
Обновлен: Ноябрь 2007
Adds a new AnalysisHintNode with the specified area to the ink analyzer.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Function CreateAnalysisHint ( _
analysisHintRectangle As Rectangle _
) As AnalysisHintNode
'Применение
Dim instance As InkAnalyzer
Dim analysisHintRectangle As Rectangle
Dim returnValue As AnalysisHintNode
returnValue = instance.CreateAnalysisHint(analysisHintRectangle)
public AnalysisHintNode CreateAnalysisHint(
Rectangle analysisHintRectangle
)
public:
AnalysisHintNode^ CreateAnalysisHint(
Rectangle analysisHintRectangle
)
public AnalysisHintNode CreateAnalysisHint(
Rectangle analysisHintRectangle
)
public function CreateAnalysisHint(
analysisHintRectangle : Rectangle
) : AnalysisHintNode
Параметры
- analysisHintRectangle
Тип: System.Drawing.Rectangle
The rectangle to which to set the hint's location.
Возвращаемое значение
Тип: Microsoft.Ink.AnalysisHintNode
The new AnalysisHintNode added to the ink analyzer.
Заметки
The ink analyzer adds the new AnalysisHintNode as a subnode of the analyzer's RootNode.
Adding an analysis hint does not mark the hint's area for reanalysis. To mark the area within the hint for reanalysis, call the DirtyRegion object's Union method with the hint's Location.
If a hint is assigned an infinite area, termed a global hint, the ink analyzer applies the hint's context to all ink that is not within another hint's area. Multiple hints may be attached to a single analyzer. However, only one global hint can be attached to a single ink analyzer, and no non-global hints can overlap. For more information about the types of context information that a hint can provide, see AnalysisHintNode.
Примеры
This example creates an AnalysisHintNode, theAnalysisHint, for the InkAnalyzer, theInkAnalyzerWithHint. The new hint's area is set to the rectangle, theAnalysisRegion. It then sets the following properties on the hint:
' Add a new analysis hint to theInkAnalyzer.
Dim theAnalysisHint As Microsoft.Ink.AnalysisHintNode = _
Me.theInkAnalyzer.CreateAnalysisHint(theAnalysisRegion.GetBounds())
theAnalysisHint.AllowPartialDictionaryTerms = True
theAnalysisHint.Name = "Allow Partial Dictionary Terms"
// Add a new analysis hint to theInkAnalyzer.
Microsoft.Ink.AnalysisHintNode theAnalysisHint =
this.theInkAnalyzer.CreateAnalysisHint(theAnalysisRegion.GetBounds());
theAnalysisHint.AllowPartialDictionaryTerms = true;
theAnalysisHint.Name = "Allow Partial Dictionary Terms";
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
CreateAnalysisHint - перегрузка
Microsoft.Ink - пространство имен