Freigeben über


CreateRecognizerContext Method

CreateRecognizerContext Method

Creates a new InkRecognizerContext object.

Declaration

[C++]

HRESULT CreateRecognizerContext(
    [out, retval] IInkRecognizerContext** Context
);

[Microsoft® Visual Basic® 6.0]

Public Function CreateRecognizerContext() As InkRecognizerContext

Parameters

Context

[out, retval] Returns a InkRecognizerContext for the invoking IInkRecognizer.

Return Value

HRESULT value Description
S_OK Success.
E_POINTER A parameter contained an invalid pointer.
E_INK_EXCEPTION An exception occurred inside the method.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example creates an InkRecognizerContext for the default IInkRecognizer.

        '...
Dim theRecognizers As New InkRecognizers
Dim theRecognizer As IInkRecognizer
Set theRecognizer = theRecognizers.GetDefaultRecognizer()
Dim theRecognizerContext As IInkRecognizerContext
Set theRecognizerContext = theRecognizer.CreateRecognizerContext()
'...
      

Applies To