We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Mouse.MoveScrollWheelImplementation Method

Scrolls the mouse wheel on the specified control 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)

protected virtual void MoveScrollWheelImplementation(
	UITestControl control,
	int wheelMoveCount,
	ModifierKeys modifierKeys
)

Parameters

control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl

UITestControl to scroll.

wheelMoveCount
Type: Int32

Number of mouse wheel scrolls.

modifierKeys
Type: ModifierKeys

The ModifierKeys that is pressed while scrolling.

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

Show: