Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)
Syntax
'Declaration
Public Shared Sub MoveScrollWheel ( _
control As UITestControl, _
wheelMoveCount As Integer, _
modifierKeys As ModifierKeys _
)
public static void MoveScrollWheel(
UITestControl control,
int wheelMoveCount,
ModifierKeys modifierKeys
)
public:
static void MoveScrollWheel(
UITestControl^ control,
int wheelMoveCount,
ModifierKeys modifierKeys
)
static member MoveScrollWheel :
control:UITestControl *
wheelMoveCount:int *
modifierKeys:ModifierKeys -> unit
public static function MoveScrollWheel(
control : UITestControl,
wheelMoveCount : int,
modifierKeys : ModifierKeys
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlUITestControl to scroll.
wheelMoveCount
Type: Int32Number of mouse wheel scrolls.
modifierKeys
Type: ModifierKeysThe ModifierKeys that is 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.