InkEditRecognitionEventHandler Delegate
Represents the method that handles the Recognition event of an InkEdit control.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
'Declaration Public Delegate Sub InkEditRecognitionEventHandler ( _ sender As Object, _ e As InkEditRecognitionEventArgs _ ) 'Usage Dim instance As New InkEditRecognitionEventHandler(AddressOf HandlerMethod)
Parameters
- sender
- Type: System.Object
The source InkEdit control of this event.
- e
- Type: Microsoft.Ink.InkEditRecognitionEventArgs
The InkEditRecognitionEventArgs object that contains the event data.
In this example, the Recognition event is used to persist the RecognitionResult object. First, the RecognitionResult object is attached to the associated Strokes collection by calling the SetResultOnStrokes method. Then the Strokes are added to the CustomStrokes property of the associated Ink object.
Private Sub mInkEdit_Recognition(ByVal sender As Object, ByVal e As InkEditRecognitionEventArgs) Dim R As RecognitionResult = e.RecognitionResult R.SetResultOnStrokes() ' add these strokes to custom strokes collection ' using R.Strokes(0).Id as the name R.Strokes.Ink.CustomStrokes.Add(R.Strokes(0).Id.ToString(), R.Strokes) End Sub
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.