Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Aggiornamento: novembre 2007
Viene generato in seguito alla modifica della modalità di correzione.
Spazio dei nomi: Microsoft.Ink.TextInput
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Sintassi
'Dichiarazione
Public Event CorrectionModeChanged As EventHandler(Of CorrectionModeChangeEventArgs)
'Utilizzo
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 non supporta gli eventi.
Esempi
Nei due esempi riportati di seguito viene illustrato come utilizzare CorrectionModeChanged.
Nel primo esempio viene associato un gestore eventi CorrectionModeChanged, tip_CorrectionModeChanged, all'oggetto TextInputPanel, tip.
AddHandler tip.CorrectionModeChanged, AddressOf tip_CorrectionModeChanged
tip.CorrectionModeChanged += new EventHandler<CorrectionModeChangeEventArgs>(tip_CorrectionModeChanged);
Nel secondo esempio è definito un gestore eventi per l'evento CorrectionModeChanged dove i valori contenuti negli oggetti NewMode e CurrentCorrectionMode sono utilizzati per impostare la proprietà TextBox.Text di un controllo 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;
}
Piattaforme
Windows Vista, Windows XP SP2, Windows Server 2003
.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