Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITestActionExecutor::StartDragging Method (UITechnologyElement^, MouseButtons, ModifierKeys, Point)

 

Start dragging the mouse with specified buttons, modifier keys from the given location.

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

public:
virtual void StartDragging(
	UITechnologyElement^ control,
	MouseButtons button,
	ModifierKeys modifierKeys,
	Point relativeCoordinate
) abstract

Parameters

control
Type: Microsoft.VisualStudio.TestTools.UITest.Extension::UITechnologyElement^

Control on which to start dragging.

button
Type: System.Windows.Forms::MouseButtons

Mouse button to be pressed while dragging.

modifierKeys
Type: System.Windows.Input::ModifierKeys

Modifier keys to be pressed while dragging.

relativeCoordinate
Type: System.Drawing::Point

Co-ordinates relative to the control to start dragging. If control is null, it is taken as absolute screen co-ordinates.

Return to top
Show: