Skip to main content

MouseEventArgs

The MouseEventArgs class represents mouse event arguments, providing details about the mouse state during an event.

Properties

NameDescription
ScreenYThe vertical coordinate of the mouse relative to the screen.
LayerXThe horizontal coordinate of the mouse relative to the nearest positioned ancestor element.
ButtonsSpecifies the currently pressed mouse buttons.
ScreenXThe horizontal coordinate of the mouse relative to the screen.
MovementYThe vertical movement of the mouse since the last event.
PageXThe horizontal coordinate of the mouse relative to the whole document.
ButtonSpecifies which mouse button was pressed.
XThe horizontal coordinate of the mouse relative to the event target.
CtrlKeyIndicates whether the "Ctrl" key was pressed during the event.
YThe vertical coordinate of the mouse relative to the event target.
ClientYThe vertical coordinate of the mouse relative to the client area.
OffsetXThe horizontal coordinate of the mouse relative to the event target.
ShiftKeyIndicates whether the "Shift" key was pressed during the event.
LayerYThe vertical coordinate of the mouse relative to the nearest positioned ancestor element.
PageYThe vertical coordinate of the mouse relative to the whole document.
AltKeyIndicates whether the "Alt" key was pressed during the event.
ClientXThe horizontal coordinate of the mouse relative to the client area.
OffsetYThe vertical coordinate of the mouse relative to the event target.
MovementXThe horizontal movement of the mouse since the last event.
ResponseParametersThe response parameters associated with the event.
MetaKeyIndicates whether the "Meta" key (Windows key or Command key) was pressed during the event.

Constructors

NameDescription
MouseEventArgs()Initializes a new instance of the MouseEventArgs class.