다음을 통해 공유


TextInputPanel.CorrectionModeChanged 이벤트

업데이트: 2007년 11월

수정 모드가 변경될 때 발생합니다.

네임스페이스:  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를 사용하는 방법을 보여 줍니다.

첫 번째 예제에서는 TextInputPanel 개체인 tip에 CorrectionModeChanged 이벤트 처리기인 tip_CorrectionModeChanged를 연결합니다.

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 네임스페이스