InkRecognizerContainer InkRecognizerContainer InkRecognizerContainer InkRecognizerContainer Class


Provides properties and methods to manage one or more InkRecognizer objects used for handwriting recognition.

InkRecognizerContainer is null if a recognition engine is not available on the system.

public : sealed class InkRecognizerContainer : IInkRecognizerContainer
public sealed class InkRecognizerContainer : IInkRecognizerContainer
Public NotInheritable Class InkRecognizerContainer Implements IInkRecognizerContainer
var inkRecognizerContainer = new inkRecognizerContainer();
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)


If recognition is not required, use an InkStrokeContainer object instead of an InkManager. Previous recognition results are still available through GetRecognitionResults.

If only recognition is required, and not storage, use an InkRecognizerContainer instead of an InkManager.


: 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).


InkRecognizerContainer() InkRecognizerContainer() InkRecognizerContainer() InkRecognizerContainer()

Creates a new InkRecognizerContainer object to manage InkRecognizer objects used for handwriting recognition.

InkRecognizerContainer is null if a recognition engine is not available on the system.

public : InkRecognizerContainer()
public InkRecognizerContainer()
Public Sub New()
var inkRecognizerContainer = new inkRecognizerContainer();
See Also


GetRecognizers() GetRecognizers() GetRecognizers() GetRecognizers()

Gets the collection of installed handwriting recognizers.

public : IVectorView<InkRecognizer> GetRecognizers()
public IReadOnlyList<InkRecognizer> GetRecognizers()
Public Function GetRecognizers() As IReadOnlyList<InkRecognizer>( Of InkRecognizer )
var iVectorView = inkRecognizerContainer.getRecognizers();
IVectorView<InkRecognizer> IReadOnlyList<InkRecognizer> IReadOnlyList<InkRecognizer> IReadOnlyList<InkRecognizer>

The installed handwriting recognizers as a collection of InkRecognizer objects.

See Also

RecognizeAsync(InkStrokeContainer, InkRecognitionTarget) RecognizeAsync(InkStrokeContainer, InkRecognitionTarget) RecognizeAsync(InkStrokeContainer, InkRecognitionTarget) RecognizeAsync(InkStrokeContainer, InkRecognitionTarget)

Performs handwriting recognition on one or more InkStroke objects.

public : IAsyncOperation<IVectorView<InkRecognitionResult>> RecognizeAsync(InkStrokeContainer strokeCollection, InkRecognitionTarget recognitionTarget)
public IAsyncOperation<IReadOnlyList<InkRecognitionResult>> RecognizeAsync(InkStrokeContainer strokeCollection, InkRecognitionTarget recognitionTarget)
Public Function RecognizeAsync(strokeCollection As InkStrokeContainer, recognitionTarget As InkRecognitionTarget) As IAsyncOperation<IReadOnlyList<InkRecognitionResult>>( Of IVectorView )
Windows.UI.Input.Inking.InkRecognizerContainer.recognizeAsync(strokeCollection, recognitionTarget).done( /* Your success and error handlers */ );
InkStrokeContainer InkStrokeContainer InkStrokeContainer InkStrokeContainer

The set of strokes on which recognition is performed.

IAsyncOperation<IVectorView<InkRecognitionResult>> IAsyncOperation<IReadOnlyList<InkRecognitionResult>> IAsyncOperation<IReadOnlyList<InkRecognitionResult>> IAsyncOperation<IReadOnlyList<InkRecognitionResult>>

The results of the recognition as a collection of InkRecognitionResult objects.Each item in the collection represents a written word. For example, the string "this is a test" contains four words that are stored as a collection of four items.


Because RecognizeAsync does not automatically update the existing recognition results stored in the InkManager, typically UpdateRecognitionResults is called after RecognizeAsync has completed.

See Also

SetDefaultRecognizer(InkRecognizer) SetDefaultRecognizer(InkRecognizer) SetDefaultRecognizer(InkRecognizer) SetDefaultRecognizer(InkRecognizer)

Sets the default InkRecognizer used for handwriting recognition.

public : void SetDefaultRecognizer(InkRecognizer recognizer)
public void SetDefaultRecognizer(InkRecognizer recognizer)
Public Function SetDefaultRecognizer(recognizer As InkRecognizer) As void
See Also

See Also