Share via


Mouse.MoveScrollWheel Method (UITestControl, Int32)

Scrolls the mouse wheel on the specified control the specified number of times.

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

Syntax

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

Parameters

  • wheelMoveCount
    Type: System.Int32
    Number of mouse wheel scrolls.

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

UITestControl