MouseEventArgs MouseEventArgs MouseEventArgs MouseEventArgs Class

Contains event data for the MouseMoved event.

Syntax

Declaration

public sealed class MouseEventArgspublic sealed class MouseEventArgsPublic NotInheritable Class MouseEventArgspublic sealed class MouseEventArgs

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 summary

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

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 MouseDeltapublic MouseDelta MouseDelta { get; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Devices.Input.dll