Mouse.MoveScrollWheel Method (Int32, ModifierKeys)

Scrolls the mouse wheel the specified number of times while pressing the specified modifier keys.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Shared Sub MoveScrollWheel ( _
    wheelMoveCount As Integer, _
    modifierKeys As ModifierKeys _
)
public static void MoveScrollWheel(
    int wheelMoveCount,
    ModifierKeys modifierKeys
)
public:
static void MoveScrollWheel(
    int wheelMoveCount, 
    ModifierKeys modifierKeys
)
static member MoveScrollWheel : 
        wheelMoveCount:int * 
        modifierKeys:ModifierKeys -> unit
public static function MoveScrollWheel(
    wheelMoveCount : int, 
    modifierKeys : ModifierKeys
)

Parameters

  • wheelMoveCount
    Type: Int32

    The number of mouse wheel scrolls.

  • modifierKeys
    Type: ModifierKeys

    The ModifierKeys that are pressed while scrolling.

Remarks

The direction of the wheel is determined by the sign of wheelMoveCount. Positive values indicate forward mouse scrolling; negative values indicate backward mouse scrolling.

.NET Framework Security

See Also

Reference

Mouse Class

MoveScrollWheel Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace

ModifierKeys