RecognizerContext.Recognizer (Propiedad)
Actualización: noviembre 2007
Obtiene el objeto Recognizer que usa el objeto RecognizerContext.
Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink (en Microsoft.Ink.dll)
Sintaxis
'Declaración
Public ReadOnly Property Recognizer As Recognizer
'Uso
Dim instance As RecognizerContext
Dim value As Recognizer
value = instance.Recognizer
public Recognizer Recognizer { get; }
public:
property Recognizer^ Recognizer {
Recognizer^ get ();
}
/** @property */
public Recognizer get_Recognizer()
public function get Recognizer () : Recognizer
Valor de propiedad
Tipo: Microsoft.Ink.Recognizer
Objeto Recognizer.
Ejemplos
En este ejemplo, se crean instancias de dos objetos RecognizerContext mediante técnicas diferentes. La propiedad Recognizer de cada uno de los dos objetos RecognizerContext hace referencia al mismo valor (predeterminado) 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);
Plataformas
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0