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


InkAnalyzer.AddStrokesToCustomRecognizer - метод

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

Adds stroke data for multiple strokes to a custom recognizer node.

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

Синтаксис

'Декларация
Public Function AddStrokesToCustomRecognizer ( _
    strokes As StrokeCollection, _
    customRecognizer As CustomRecognizerNode _
) As ContextNode
'Применение
Dim instance As InkAnalyzer
Dim strokes As StrokeCollection
Dim customRecognizer As CustomRecognizerNode
Dim returnValue As ContextNode

returnValue = instance.AddStrokesToCustomRecognizer(strokes, _
    customRecognizer)
public ContextNode AddStrokesToCustomRecognizer(
    StrokeCollection strokes,
    CustomRecognizerNode customRecognizer
)
public:
ContextNode^ AddStrokesToCustomRecognizer(
    StrokeCollection^ strokes, 
    CustomRecognizerNode^ customRecognizer
)
public ContextNode AddStrokesToCustomRecognizer(
    StrokeCollection strokes,
    CustomRecognizerNode customRecognizer
)
public function AddStrokesToCustomRecognizer(
    strokes : StrokeCollection, 
    customRecognizer : CustomRecognizerNode
) : ContextNode

Параметры

Возвращаемое значение

Тип: System.Windows.Ink.ContextNode
The context node to which the ink analyzer added strokes.

Заметки

The InkAnalyzer adds strokes to a ContextNode with a Type property value of UnclassifiedInk.

During analysis, the ink analyzer assigns the locale identifier of the active input thread to the stroke and adds the stroke to the first unclassified ink node under the ink recognizer. If no unclassified node exists, it is created. If the custom recognizer does not support the locale identifier, the ink analyzer continues analyzing and generates an AnalysisWarning warning. This warning has its WarningCode property set to the AnalysisWarningCode value of LanguageIdNotRespected.

Only strokes with the same packet descriptions can be added in a single call to AddStrokes.

This method expands the DirtyRegion to the union of the region's current value and the bounding box of the added strokes.

The InkAnalyzer throws an exception under the following circumstances.

  • The InkAnalyzer already contains a stroke with the same identifier as one of the strokes to be added.

  • The customRecognizer parameter contains a ContextNode that is associated with a different InkAnalyzer object.

  • The customRecognizer parameter contains a ContextNode that does not have a Type property value of CustomRecognizer.

Примеры

The following example adds the strokes from an InkCanvas to the CustomRecognizerNode, named theCustomRecognizerNode.

' Add the strokes to the specified CustomRecognizerNode.
Me.theInkAnalyzer.AddStrokesToCustomRecognizer(theInkCanvas.Strokes, Me.theCustomRecognizerNode)
// Add the strokes to the specified CustomRecognizerNode.
this.theInkAnalyzer.AddStrokesToCustomRecognizer(
    theInkCanvas.Strokes,
    this.theCustomRecognizerNode);

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

InkAnalyzer Класс

InkAnalyzer - члены

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