InkRecognitionResult InkRecognitionResult InkRecognitionResult InkRecognitionResult Class

Definition

Provides properties and methods to manage InkStroke handwriting recognition data.

Recognition results are produced for each word detected by an InkRecognizer.

public : sealed class InkRecognitionResult : IInkRecognitionResult
public sealed class InkRecognitionResult : IInkRecognitionResult
Public NotInheritable Class InkRecognitionResult Implements IInkRecognitionResult
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

JavaScript (usage)
var inkRecognitionResults = Windows.UI.Input.Inking.InkManager.getRecognitionResults(); var inkRecognitionResult = inkRecognitionResults[...];
var inkRecognitionResults =Windows.UI.Input.Inking.InkStrokeContainer.getRecognitionResults(); var inkRecognitionResult = inkRecognitionResults[...];

Note

: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Properties

BoundingRect BoundingRect BoundingRect BoundingRect

Gets the bounding rectangle of the InkStroke data used for handwriting recognition.

Recognition results are produced for each word that is detected by an InkRecognizer.

public : Rect BoundingRect { get; }
public Rect BoundingRect { get; }
Public ReadOnly Property BoundingRect As Rect
var rect = inkRecognitionResult.boundingRect;
Value
Rect Rect Rect Rect

The bounding rectangle of the ink strokes.

See Also

Methods

GetStrokes() GetStrokes() GetStrokes() GetStrokes()

Retrieves all ink strokes used for handwriting recognition.

Recognition results are produced for each word that is detected by an InkRecognizer.

public : IVectorView<InkStroke> GetStrokes()
public IReadOnlyList<InkStroke> GetStrokes()
Public Function GetStrokes() As IReadOnlyList<InkStroke>( Of InkStroke )
var iVectorView = inkRecognitionResult.getStrokes();
Returns
IVectorView<InkStroke> IReadOnlyList<InkStroke> IReadOnlyList<InkStroke> IReadOnlyList<InkStroke>

The ink strokes used for handwriting recognition as a collection of InkStroke objects.

See Also

GetTextCandidates() GetTextCandidates() GetTextCandidates() GetTextCandidates()

Retrieves the collection of strings identified as potential matches for each word returned by handwriting recognition.

public : IVectorView<Platform::String> GetTextCandidates()
public IReadOnlyList<string> GetTextCandidates()
Public Function GetTextCandidates() As IReadOnlyList<string>( Of string )
var iVectorView = inkRecognitionResult.getTextCandidates();
Returns
IVectorView<Platform::String> IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>

The recognition matches as a collection of String objects. The most likely candidate is topmost in the collection.

See Also

See Also