Mouse​Event​Args Mouse​Event​Args Mouse​Event​Args Mouse​Event​Args Class

Definition

Contains event data for the MouseMoved event.

public : sealed class MouseEventArgs : IMouseEventArgspublic sealed class MouseEventArgs : IMouseEventArgsPublic NotInheritable Class MouseEventArgs Implements IMouseEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

JavaScript: This object is accessed when you implement a handler to respond to MouseMoved events.

The Device Capabilities Sample demonstrates how to detect the presence of input devices and retrieve the capabilities and attributes of each device.

Note

: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Properties

MouseDelta MouseDelta MouseDelta MouseDelta

Gets a value that indicates the change in the screen location of the mouse pointer since the last mouse event.

public : MouseDelta MouseDelta { get; }public MouseDelta MouseDelta { get; }Public ReadOnly Property MouseDelta As MouseDelta// You can use this property in JavaScript.
Value
MouseDelta MouseDelta MouseDelta MouseDelta

The change in screen location of the mouse pointer, relative to the location of the last mouse event.