Mouse.StartDragging Method (UITestControl, Point, MouseButtons, ModifierKeys)

Starts dragging the mouse while holding down the specified mouse buttons and the specified keys from the specified point that is relative to the specified control or from an absolute control, if control is nulla null reference (Nothing in Visual Basic).

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

Syntax

'Declaration
Public Shared Sub StartDragging ( _
    control As UITestControl, _
    relativeCoordinate As Point, _
    button As MouseButtons, _
    modifierKeys As ModifierKeys _
)
public static void StartDragging(
    UITestControl control,
    Point relativeCoordinate,
    MouseButtons button,
    ModifierKeys modifierKeys
)
public:
static void StartDragging(
    UITestControl^ control, 
    Point relativeCoordinate, 
    MouseButtons button, 
    ModifierKeys modifierKeys
)
static member StartDragging : 
        control:UITestControl * 
        relativeCoordinate:Point * 
        button:MouseButtons * 
        modifierKeys:ModifierKeys -> unit 
public static function StartDragging(
    control : UITestControl, 
    relativeCoordinate : Point, 
    button : MouseButtons, 
    modifierKeys : ModifierKeys
)

Parameters

  • relativeCoordinate
    Type: System.Drawing.Point
    Co-ordinates that are relative to the control to start dragging. If control is nulla null reference (Nothing in Visual Basic), the relativeCoordinate specifies an absolute coordinate.

.NET Framework Security

See Also

Reference

Mouse Class

StartDragging Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace

UITestControl

MouseButtons

ModifierKeys