InkAnalyzer.AddStrokeToCustomRecognizer - метод
Обновлен: Ноябрь 2007
Adds a stroke to a custom recognizer node.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Function AddStrokeToCustomRecognizer ( _
stroke As Stroke, _
customRecognizer As CustomRecognizerNode _
) As ContextNode
'Применение
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim customRecognizer As CustomRecognizerNode
Dim returnValue As ContextNode
returnValue = instance.AddStrokeToCustomRecognizer(stroke, _
customRecognizer)
public ContextNode AddStrokeToCustomRecognizer(
Stroke stroke,
CustomRecognizerNode customRecognizer
)
public:
ContextNode^ AddStrokeToCustomRecognizer(
Stroke^ stroke,
CustomRecognizerNode^ customRecognizer
)
public ContextNode AddStrokeToCustomRecognizer(
Stroke stroke,
CustomRecognizerNode customRecognizer
)
public function AddStrokeToCustomRecognizer(
stroke : Stroke,
customRecognizer : CustomRecognizerNode
) : ContextNode
Параметры
- stroke
Тип: Microsoft.Ink.Stroke
The stroke to add to the custom recognizer node.
- customRecognizer
Тип: Microsoft.Ink.CustomRecognizerNode
The custom recognizer node.
Возвращаемое значение
Тип: Microsoft.Ink.ContextNode
The context node to which the InkAnalyzer added the stroke.
Заметки
The InkAnalyzer adds the Stroke to an UnclassifiedInkNode in SubNodes collection of customRecognizer. If no such UnclassifiedInkNode exists, the InkAnalyzer creates a new UnclassifiedInkNode under customRecognizer and adds the stroke to the new UnclassifiedInkNode.
This method expands the DirtyRegion to the union of the region's current value and the bounding box of the added stroke.
If the stroke is already attached to the InkAnalyzer, the InkAnalyzer throws an exception.
If customRecognizer is not a CustomRecognizerNode, the InkAnalyzer throws an exception.
Примеры
This example shows an excerpt from an event handler for the Stroke event of an InkCollector object. The stroke is added to the CustomRecognizerNode, theCustomRecognizerNode.
' Add the stroke to the specified CustomRecognizerNode.
Me.theInkAnalyzer.AddStrokeToCustomRecognizer( _
e.Stroke, Me.theCustomRecognizerNode)
// Add the stroke to the specified CustomRecognizerNode.
this.theInkAnalyzer.AddStrokeToCustomRecognizer(
e.Stroke, this.theCustomRecognizerNode);
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0