修正モードが変更された場合に発生します。
名前空間 : 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 では、イベントは使用できません。
例
次の 2 つの例は、CorrectionModeChanged の使い方を示しています。
最初の例では、CorrectionModeChanged イベント ハンドラ tip_CorrectionModeChanged を TextInputPanel オブジェクト tip に結合しています。
AddHandler tip.CorrectionModeChanged, AddressOf tip_CorrectionModeChanged
tip.CorrectionModeChanged += new EventHandler<CorrectionModeChangeEventArgs>(tip_CorrectionModeChanged);
2 つ目の例では、NewMode および CurrentCorrectionMode に格納されている値を使用して、TextBox、outputTextBox の TextBox.Text プロパティを設定する、CorrectionModeChanged イベントのイベント ハンドラを定義しています。
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