ChartEvents_MouseDownEventHandler Delegate 

A Delegate type used to add an event handler for the MouseDown event. The MouseDown event occurs when a mouse button is pressed while the pointer is over a chart.

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

Usage

Sub Sub1(Button As Integer, _
    Shift As Integer, _
    x As Integer, _
    y As Integer)
End Sub
Dim chartEvents_MouseDownEventHandler1 As New ChartEvents_MouseDownEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub ChartEvents_MouseDownEventHandler( _
    <InAttribute()> ByVal Button As Integer, _
    <InAttribute()> ByVal Shift As Integer, _
    <InAttribute()> ByVal x As Integer, _
    <InAttribute()> ByVal y As Integer _
)
public delegate void ChartEvents_MouseDownEventHandler(
    [In] int Button, 
    [In] int Shift, 
    [In] int x, 
    [In] int y
);
public delegate Void ChartEvents_MouseDownEventHandler(
    Int32 Button, 
    Int32 Shift, 
    Int32 x, 
    Int32 y
);
public delegate void ChartEvents_MouseDownEventHandler(
    /*in*/int Button, 
    /*in*/int Shift, 
    /*in*/int x, 
    /*in*/int y
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Button
    The mouse button that was pressed. Can be one of the following XlMouseButton constants: xlNoButton, xlPrimaryButton, xlSecondaryButton, or xlMiddleButton.
  • Shift
    The state of the SHIFT, CTRL, and ALT keys when the event occurred. Can be one of or a sum of the following values.

    Value

    Meaning

    0 (zero)

    No keys

    1

    SHIFT key

    2

    CTRL key

    4

    ALT key

  • x
    The X coordinate of the mouse pointer in chart object client coordinates.
  • y
    The Y coordinate of the mouse pointer in chart object client coordinates.

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