ChartEvents_MouseMoveEventHandler Delegate 

A Delegate type used to add an event handler for the MouseMove event. The MouseMove event occurs when the position of the mouse pointer changes 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_MouseMoveEventHandler1 As New ChartEvents_MouseMoveEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub ChartEvents_MouseMoveEventHandler( _
    <InAttribute()> ByVal Button As Integer, _
    <InAttribute()> ByVal Shift As Integer, _
    <InAttribute()> ByVal x As Integer, _
    <InAttribute()> ByVal y As Integer _
)
public delegate void ChartEvents_MouseMoveEventHandler(
    [In] int Button, 
    [In] int Shift, 
    [In] int x, 
    [In] int y
);
public delegate Void ChartEvents_MouseMoveEventHandler(
    Int32 Button, 
    Int32 Shift, 
    Int32 x, 
    Int32 y
);
public delegate void ChartEvents_MouseMoveEventHandler(
    /*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