Delta Property
Collapse the table of content
Expand the table of content

MouseWheelEventArgs.Delta Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value that indicates the amount that the mouse wheel rotated relative to its starting state or to the last occurrence of the event.

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)

public int Delta { get; }

Property Value

Type: System.Int32
An integer value that provides a factor of how much the mouse wheel rotated. This value can be a negative integer; see Remarks.

To obtain the absolute value of the delta, multiply by 120 the number of detents (notches on the wheel) that the wheel rotated. The delta is positive if the wheel rotated forward (away from the user), and negative if the wheel rotated backward.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft