Partager via


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

  • button
    Type: MouseButtons

    Mouse button to be pressed while dragging.

  • modifierKeys
    Type: ModifierKeys

    Modifier keys to be pressed while dragging.

  • relativeCoordinate
    Type: Point

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

.NET Framework Security

See Also

Reference

UITestActionExecutor Class

StartDragging Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace