This documentation is archived and is not being maintained.

ListObject.BeforeDoubleClick Event

Occurs when the ListObject control is double-clicked, before the default double-click action.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)

public event DocEvents_BeforeDoubleClickEventHandler BeforeDoubleClick

The following code example creates a ListObject and a BeforeDoubleClick event handler. When the ListObject is double-clicked, a message is displayed that indicates whether the ListObject is bound to data.

Microsoft.Office.Tools.Excel.ListObject list2;
private void ListObject_BeforeDoubleClick()
{
    list2 = this.Controls.AddListObject(
        this.Range["A1", "C4"], "list2");
    list2.BeforeDoubleClick += new 
        Microsoft.Office.Interop.Excel.
        DocEvents_BeforeDoubleClickEventHandler(
        list2_BeforeDoubleClick);
}

void list2_BeforeDoubleClick(Microsoft.Office.Interop.Excel.Range 
    Target, ref bool Cancel)
{
    MessageBox.Show("Data binding is " + list2.IsBinding);
}

Show: