다음을 통해 공유


TextInputPanel.CorrectionModeChanging 이벤트

업데이트: 2007년 11월

수정 모드가 변경되기 직전에 발생합니다.

네임스페이스:  Microsoft.Ink.TextInput
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public Event CorrectionModeChanging As EventHandler(Of CorrectionModeChangeEventArgs)
‘사용 방법
Dim instance As TextInputPanel
Dim handler As EventHandler(Of CorrectionModeChangeEventArgs)

AddHandler instance.CorrectionModeChanging, handler
public event EventHandler<CorrectionModeChangeEventArgs> CorrectionModeChanging
public:
 event EventHandler<CorrectionModeChangeEventArgs^>^ CorrectionModeChanging {
    void add (EventHandler<CorrectionModeChangeEventArgs^>^ value);
    void remove (EventHandler<CorrectionModeChangeEventArgs^>^ value);
}
/** @event */
public void add_CorrectionModeChanging (EventHandler<CorrectionModeChangeEventArgs> value)
/** @event */
public void remove_CorrectionModeChanging (EventHandler<CorrectionModeChangeEventArgs> value)
JScript에서는 이벤트를 지원하지 않습니다.

예제

다음 두 예제에서는 CorrectionModeChanging을 사용하는 방법을 보여 줍니다.

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

AddHandler tip.CorrectionModeChanging, AddressOf tip_CorrectionModeChanging
tip.CorrectionModeChanging += new EventHandler<CorrectionModeChangeEventArgs>(tip_CorrectionModeChanging);

두 번째 예제에서는 CorrectionModeChanging 이벤트에 대한 이벤트 처리기를 정의합니다. 이 이벤트 처리기에서는 OldModeCurrentCorrectionMode에 들어 있는 값을 사용하여 TextBox인 outputTextBox의 TextBox.Text 속성을 설정합니다.

Sub tip_CorrectionModeChanging(ByVal sender As Object, ByVal e As CorrectionModeChangeEventArgs)
    outputTextBox.Text += "Old Correction Mode is " + e.OldMode.ToString() + Environment.NewLine
    outputTextBox.Text += "Current Correction Mode is " + tip.CurrentCorrectionMode.ToString() + Environment.NewLine
End Sub
void tip_CorrectionModeChanging(object sender, CorrectionModeChangeEventArgs e)
{
    outputTextBox.Text += "Old Correction Mode is " + e.OldMode + 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 네임스페이스