Compartir a través de


MouseWheelEventArgs.Delta Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public ReadOnly Property Delta As Integer
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.

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.