Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the RecognitionResult object that contains the results of the Recognition event.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property RecognitionResult As RecognitionResult
'Usage
Dim instance As InkEditRecognitionEventArgs
Dim value As RecognitionResult
value = instance.RecognitionResult
public RecognitionResult RecognitionResult { get; }
public:
property RecognitionResult^ RecognitionResult {
RecognitionResult^ get ();
}
public function get RecognitionResult () : RecognitionResult
Property Value
Type: Microsoft.Ink.RecognitionResult
The RecognitionResult object that contains the result of the Recognition event.
Examples
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
private void mInkEdit_Recognition(object sender, InkEditRecognitionEventArgs e)
{
RecognitionResult R = 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);
}
Platforms
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.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkEditRecognitionEventArgs Class