Поделиться через


TextInputPanel.CorrectionModeChanged - событие

Обновлен: Ноябрь 2007

Occurs when the correction mode has changed.

Пространство имен:  Microsoft.Ink.TextInput
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Event CorrectionModeChanged As EventHandler(Of CorrectionModeChangeEventArgs)
'Применение
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 не поддерживает события.

Примеры

The following two examples show how to use CorrectionModeChanged.

The first example attaches an CorrectionModeChanged event handler, tip_CorrectionModeChanged, to the TextInputPanel object, tip.

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

The second example defines an event handler for the CorrectionModeChanged event where the values contained in the NewMode and CurrentCorrectionMode are used to set the TextBox.Text property of a 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;
}

Платформы

Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

TextInputPanel Класс

TextInputPanel - члены

Microsoft.Ink.TextInput - пространство имен