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)
Syntax
'Declaration
Public MustOverride Sub StartDragging ( _
control As UITechnologyElement, _
button As MouseButtons, _
modifierKeys As ModifierKeys, _
relativeCoordinate As Point _
)
public abstract void StartDragging(
UITechnologyElement control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
)
public:
virtual void StartDragging(
UITechnologyElement^ control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
) abstract
abstract StartDragging :
control:UITechnologyElement *
button:MouseButtons *
modifierKeys:ModifierKeys *
relativeCoordinate:Point -> unit
public abstract function StartDragging(
control : UITechnologyElement,
button : MouseButtons,
modifierKeys : ModifierKeys,
relativeCoordinate : Point
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementControl on which to start dragging.
button
Type: MouseButtonsMouse button to be pressed while dragging.
modifierKeys
Type: ModifierKeysModifier keys to be pressed while dragging.
relativeCoordinate
Type: PointCo-ordinates relative to the control to start dragging. If control is null, it is taken as absolute screen co-ordinates.
.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.