TextInputPanel.CorrectionModeChanged 事件

在更正模式更改后发生。

命名空间:  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 不支持事件。

示例

下面的两个示例演示如何使用 CorrectionModeChanged。

第一个示例将 CorrectionModeChanged 事件处理程序 tip_CorrectionModeChanged 附加到 TextInputPanel 对象 tip。

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

第二个示例定义 CorrectionModeChanged 事件的事件处理程序,其中包含在 NewModeCurrentCorrectionMode 中的值用于设置 TextBox (outputTextBox) 的 TextBox.Text 属性。

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 SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

TextInputPanel 类

TextInputPanel 成员

Microsoft.Ink.TextInput 命名空间