Action.Click 이벤트(2007 시스템)

업데이트: 2007년 11월

스마트 태그 메뉴에서 작업을 클릭할 경우 발생합니다.

네임스페이스:  Microsoft.Office.Tools.Word
어셈블리:  Microsoft.Office.Tools.Word.v9.0(Microsoft.Office.Tools.Word.v9.0.dll)

구문

Public Event Click As ActionClickEventHandler

Dim instance As Action
Dim handler As ActionClickEventHandler

AddHandler instance.Click, handler
public event ActionClickEventHandler Click

설명

이벤트 처리에 대한 자세한 내용은 이벤트 사용을 참조하십시오.

예제

다음 코드 예제에서는 Click 이벤트에 대한 처리기를 보여 줍니다. 이 이벤트 처리기는 인식된 스마트 태그 용어의 시작 및 끝 위치를 표시합니다. 이 코드 예제는 Action 클래스에 대해 제공되는 보다 큰 예제의 일부입니다.

이 예제는 문서 수준 사용자 지정을 위한 것입니다.

Private Sub DisplayAddress_Click(ByVal sender As Object, _
    ByVal e As Microsoft.Office.Tools.Word.ActionEventArgs) _
    Handles DisplayAddress.Click

    Dim termStart As Integer = e.Range.Start
    Dim termEnd As Integer = e.Range.End
    MsgBox("The recognized text '" & e.Text & _
            "' begins at position " & termStart & _
            " and ends at position " & termEnd)
End Sub
void displayAddress_Click(object sender,
    Microsoft.Office.Tools.Word.ActionEventArgs e)
{
    int termStart = e.Range.Start;
    int termEnd = e.Range.End;
    System.Windows.Forms.MessageBox.Show("The recognized text '" + e.Text +
        "' begins at position " + termStart.ToString() +
        " and ends at position " + termEnd.ToString());
}

권한

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

Action 클래스

Action 멤버

Microsoft.Office.Tools.Word 네임스페이스