Freigeben über


Recognizer.CreateRecognizerContext Method

Recognizer.CreateRecognizerContext Method

Creates a new RecognizerContext object for this Recognizer object.

Definition

Visual Basic .NET Public Function CreateRecognizerContext() As RecognizerContext
C# public RecognizerContext CreateRecognizerContext();
Managed C++ public: RecognizerContext* CreateRecognizerContext();

Return Value

Microsoft.Ink.RecognizerContext. The new RecognizerContext object.

Examples

[C#]

This C# example creates a RecognizerContext object, theRecognizerContext, and attaches it to the default Recognizer object, theRecognizer.

//...
Recognizers theRecognizers = new Recognizers();
Recognizer theRecognizer = theRecognizers.GetDefaultRecognizer();
RecognizerContext theRecognizerContext = theRecognizer.CreateRecognizerContext();
//...

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates a RecognizerContext object, theRecognizerContext, and attaches it to the default Recognizer object, theRecognizer.

'...
Dim theRecognizers As New Recognizers()
Dim theRecognizer As Recognizer = theRecognizers.GetDefaultRecognizer()
Dim theRecognizerContext As RecognizerContext = _
theRecognizer.CreateRecognizerContext()
'...

See Also