Compartir a través de


TextInputPanel.CorrectionModeChanged (Evento)

Actualización: noviembre 2007

Se produce cuando el modo de corrección ha cambiado.

Espacio de nombres:  Microsoft.Ink.TextInput
Ensamblado:  Microsoft.Ink (en Microsoft.Ink.dll)

Sintaxis

'Declaración
Public Event CorrectionModeChanged As EventHandler(Of CorrectionModeChangeEventArgs)
'Uso
Dim instance As TextInputPanel
Dim handler As EventHandler(Of CorrectionModeChangeEventArgs)

AddHandler instance.CorrectionModeChanged, handler
public event EventHandler<CorrectionModeChangeEventArgs> CorrectionModeChanged
public:
 event EventHandler<CorrectionModeChangeEventArgs^>^ CorrectionModeChanged {
    void add (EventHandler<CorrectionModeChangeEventArgs^>^ value);
    void remove (EventHandler<CorrectionModeChangeEventArgs^>^ value);
}
/** @event */
public void add_CorrectionModeChanged (EventHandler<CorrectionModeChangeEventArgs> value)
/** @event */
public void remove_CorrectionModeChanged (EventHandler<CorrectionModeChangeEventArgs> value)
JScript no admite eventos.

Ejemplos

En los siguientes dos ejemplos se muestra cómo usar CorrectionModeChanged.

En el primer ejemplo se asocia un controlador de eventos CorrectionModeChanged, tip_CorrectionModeChanged, al objeto TextInputPanel,tip.

AddHandler tip.CorrectionModeChanged, AddressOf tip_CorrectionModeChanged
tip.CorrectionModeChanged += new EventHandler<CorrectionModeChangeEventArgs>(tip_CorrectionModeChanged);

En el segundo ejemplo se define un controlador del evento CorrectionModeChanged donde los valores que contienen NewMode y CurrentCorrectionMode se usan para establecer propiedad TextBox.Text de un control TextBox, outputTextBox.

Sub tip_CorrectionModeChanged(ByVal sender As Object, ByVal e As CorrectionModeChangeEventArgs)
    outputTextBox.Text += "New Correction Mode is " + e.NewMode.ToString() + Environment.NewLine
    outputTextBox.Text += "Current Correction Mode is " + tip.CurrentCorrectionMode.ToString() + Environment.NewLine
End Sub
void tip_CorrectionModeChanged(object sender, CorrectionModeChangeEventArgs e)
{
    outputTextBox.Text += "New Correction Mode is " + e.NewMode + Environment.NewLine;
    outputTextBox.Text += "Current Correction Mode is " + tip.CurrentCorrectionMode + Environment.NewLine;
}

Plataformas

Windows Vista, Windows XP SP2, Windows Server 2003

.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

Vea también

Referencia

TextInputPanel (Clase)

TextInputPanel (Miembros)

Microsoft.Ink.TextInput (Espacio de nombres)