Compartilhar via


Evento Action.Click (sistema de 2007)

Ocorre quando a ação no marca SMART menu é clicado.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (em Microsoft.Office.Tools.Excel.v9.0.dll)

Sintaxe

Public Event Click As ActionClickEventHandler

Dim instance As Action
Dim handler As ActionClickEventHandler

AddHandler instance.Click, handler
public event ActionClickEventHandler Click

Exemplos

O exemplo de código a seguir demonstra um manipulador para o Click evento. O manipulador de eventos exibe o endereço da célula que contém marcas inteligentes reconhecidas termo ou expressão.Este exemplo de código é parte de um exemplo maior fornecido para a classe Action.

Este exemplo é para uma personalização em nível de documento.

PrivateSub DisplayAddress_Click(ByVal sender AsObject, _
    ByVal e As Microsoft.Office.Tools.Excel.ActionEventArgs) _
    Handles DisplayAddress.Click

    Dim smartTagAddress AsString = e.Range.Address( _
        ReferenceStyle:=Excel.XlReferenceStyle.xlA1)
    MsgBox("The recognized text '" & e.Text & _
            "' is at range " & smartTagAddress)
EndSub
void DisplayAddress_Click(object sender, 
    Microsoft.Office.Tools.Excel.ActionEventArgs e)
{
    string smartTagAddress = e.Range.get_Address(missing,
        missing, Excel.XlReferenceStyle.xlA1, missing, missing);
    System.Windows.Forms.MessageBox.Show("The recognized text '" + e.Text +
        "' is at range " + smartTagAddress);
}

Permissões

Consulte também

Referência

Action Classe

Membros Action

Namespace Microsoft.Office.Tools.Excel