Partager via


UITestActionExecutor.MoveScrollWheel Method (UITechnologyElement, Int32, ModifierKeys)

Scroll the mouse wheel.

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

Syntax

'Declaration
Public MustOverride Sub MoveScrollWheel ( _
    control As UITechnologyElement, _
    wheelMoveCount As Integer, _
    modifierKeys As ModifierKeys _
)
public abstract void MoveScrollWheel(
    UITechnologyElement control,
    int wheelMoveCount,
    ModifierKeys modifierKeys
)
public:
virtual void MoveScrollWheel(
    UITechnologyElement^ control, 
    int wheelMoveCount, 
    ModifierKeys modifierKeys
) abstract
abstract MoveScrollWheel : 
        control:UITechnologyElement * 
        wheelMoveCount:int * 
        modifierKeys:ModifierKeys -> unit
public abstract function MoveScrollWheel(
    control : UITechnologyElement, 
    wheelMoveCount : int, 
    modifierKeys : ModifierKeys
)

Parameters

  • wheelMoveCount
    Type: Int32

    Number of mouse wheel scrolls.

  • modifierKeys
    Type: ModifierKeys

    The modifiers key pressed while scrolling.

Remarks

The direction of wheel is decided by by the sign of wheelMoveCount. If it is +ve then forward otherwise backward direction.

.NET Framework Security

See Also

Reference

UITestActionExecutor Class

MoveScrollWheel Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace