Metodo Recognizer.CreateRecognizerContext
Aggiornamento: novembre 2007
Crea un nuovo oggetto RecognizerContext per questo oggetto Recognizer.
Spazio dei nomi: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Sintassi
'Dichiarazione
Public Function CreateRecognizerContext As RecognizerContext
'Utilizzo
Dim instance As Recognizer
Dim returnValue As RecognizerContext
returnValue = instance.CreateRecognizerContext()
public RecognizerContext CreateRecognizerContext()
public:
RecognizerContext^ CreateRecognizerContext()
public RecognizerContext CreateRecognizerContext()
public function CreateRecognizerContext() : RecognizerContext
Valore restituito
Tipo: Microsoft.Ink.RecognizerContext
Nuovo oggetto RecognizerContext.
Esempi
In questo esempio, viene creata l'istanza di due oggetti RecognizerContext con tecniche diverse. Entrambi gli oggetti RecognizerContext dispongono di un'associazione con l'oggetto Recognizer predefinito.
' 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);
Piattaforme
Windows Vista
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Framework
Supportato in: 3.0