Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StartDragging Method (UITestControl, MouseButtons)

Mouse.StartDragging Method (UITestControl, MouseButtons)

Starts dragging the mouse while holding down the specified mouse buttons from the specified control.

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

public static void StartDragging(
	UITestControl control,
	MouseButtons button
)

Parameters

control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
UITestControl from which to start dragging.
button
Type: System.Windows.Forms.MouseButtons
MouseButtons to be pressed while dragging.

Community Additions

ADD
Show:
© 2015 Microsoft