System.Windows.Forms.SystemInformation.MouseWheelScrollLines Property

Gets the number of lines to scroll when the mouse wheel is rotated.

Syntax

public static int MouseWheelScrollLines { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The SystemInformation.MouseWheelScrollLines property indicates how many lines to scroll, by default, in a multi-line control that has a scroll bar. The corresponding Platform SDK system-wide parameters are SPI_GETWHEELSCROLLLINES and SPI_SETWHEELSCROLLLINES. For more information about system-wide parameters, see "SystemParametersInfo" in the Platform SDK documentation at tp://msdn.microsoft.com/.

Note:

Be sure to handle the special case that occurs if the "One screen at a time" mouse option is selected. In this case, the SystemInformation.MouseWheelScrollLines property has a value of -1.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0