Recognizer.CreateRecognizerContext 메서드
업데이트: 2007년 11월
이 Recognizer 개체의 새 RecognizerContext 개체를 만듭니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public Function CreateRecognizerContext As RecognizerContext
‘사용 방법
Dim instance As Recognizer
Dim returnValue As RecognizerContext
returnValue = instance.CreateRecognizerContext()
public RecognizerContext CreateRecognizerContext()
public:
RecognizerContext^ CreateRecognizerContext()
public RecognizerContext CreateRecognizerContext()
public function CreateRecognizerContext() : RecognizerContext
반환 값
형식: Microsoft.Ink.RecognizerContext
새 RecognizerContext 개체입니다.
예제
이 예제에서는 서로 다른 방법을 사용하여 두 RecognizerContext 개체를 인스턴스화합니다. 두 RecognizerContext 개체가 모두 기본 Recognizer와 연결되어 있습니다.
' create a new RecognizerContext object
Dim mRecognizerContext1 As RecognizerContext = New RecognizerContext()
' When you create a new RecognizerContext object via the .ctor
' as shown above, it is associated with the default Recognizer.
'
' You could also obtain the RecognizerContext object in this manner:
Dim allRecognizers As Recognizers = New Recognizers()
Dim defaultRecognizer As Recognizer = allRecognizers.GetDefaultRecognizer()
Dim mRecognizerContext2 As RecognizerContext = defaultRecognizer.CreateRecognizerContext()
' same recognizer either way
Dim thisIsTrue As Boolean = (mRecognizerContext1.Recognizer.Id = mRecognizerContext2.Recognizer.Id)
// create a new RecognizerContext object
RecognizerContext mRecognizerContext1 = new RecognizerContext();
// When you create a new RecognizerContext object via the .ctor
// as shown above, it is associated with the default Recognizer.
//
// You could also obtain the RecognizerContext object in this manner:
Recognizers allRecognizers = new Recognizers();
Recognizer defaultRecognizer = allRecognizers.GetDefaultRecognizer();
RecognizerContext mRecognizerContext2 = defaultRecognizer.CreateRecognizerContext();
// same recognizer either way
bool thisIsTrue = (mRecognizerContext1.Recognizer.Id == mRecognizerContext2.Recognizer.Id);
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원