다음을 통해 공유


TextInputPanel.TextInserted 이벤트

업데이트: 2007년 11월

Tablet PC 입력 패널에서 입력 포커스가 있는 컨트롤에 텍스트를 삽입했을 때 발생합니다.

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

구문

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

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

예제

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

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

AddHandler tip.TextInserted, AddressOf tip_TextInserted
tip.TextInserted += new EventHandler<TextInsertionEventArgs>(tip_TextInserted);

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

Sub tip_TextInserted(ByVal sender As Object, ByVal e As TextInsertionEventArgs)
    outputTextBox.Text += "Inserted Text: " + Environment.NewLine
    Dim inkArray As Microsoft.Ink.Ink() = e.GetInk()
    Dim ink As Microsoft.Ink.Ink
    For Each ink In inkArray
        outputTextBox.Text += ink.Strokes.ToString()
    Next ink
    outputTextBox.Text += Environment.NewLine
End Sub
void tip_TextInserted(object sender, TextInsertionEventArgs e)
{
    outputTextBox.Text += "Inserted Text: " + Environment.NewLine;
    Microsoft.Ink.Ink[] inkArray = e.GetInk();
    foreach (Microsoft.Ink.Ink ink in inkArray)
    {
        outputTextBox.Text += ink.Strokes.ToString();
    }
    outputTextBox.Text += 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 네임스페이스