WorkbookEvents_SheetBeforeDoubleClickEventHandler Delegate 

A Delegate type used to add an event handler for the SheetBeforeDoubleClick event. The SheetBeforeDoubleClick event occurs when any worksheet is double-clicked, before the default double-click action.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Usage

Sub Sub1(Sh As Object, _
    Target As Range, _
    Cancel As Boolean)
End Sub
Dim workbookEvents_SheetBeforeDoubleClickEventHandler1 As New WorkbookEvents_SheetBeforeDoubleClickEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub WorkbookEvents_SheetBeforeDoubleClickEventHandler( _
    <InAttribute()> ByVal Sh As Object, _
    <InAttribute()> ByVal Target As Range, _
    <InAttribute(), OutAttribute()> ByRef Cancel As Boolean _
)
public delegate void WorkbookEvents_SheetBeforeDoubleClickEventHandler(
    [In] object Sh, 
    [In] Range Target, 
    [In, Out] ref bool Cancel
);
public delegate Void WorkbookEvents_SheetBeforeDoubleClickEventHandler(
    Object^ Sh, 
    Range^ Target, 
    &Boolean Cancel
);
public delegate void WorkbookEvents_SheetBeforeDoubleClickEventHandler(
    /*in*/System.Object Sh, 
    /*in*/Range Target, 
    /*in*/boolean Cancel
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Sh
    A Worksheet object that represents the sheet.
  • Target
    The cell nearest to the mouse pointer when the double-click occurred.
  • Cancel
    False when the event occurs. If the event procedure sets this argument to True, the default double-click action isn't performed when the procedure is finished.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Excel Namespace