Share via


DragAction Constructor (UITechnologyElement, MouseButtons)

Initializes a new instance of the DragAction class by using the provided element and buttons.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

'Declaration
Public Sub New ( _
    uiElement As UITechnologyElement, _
    mouseButton As MouseButtons _
)
public DragAction(
    UITechnologyElement uiElement,
    MouseButtons mouseButton
)
public:
DragAction(
    UITechnologyElement^ uiElement, 
    MouseButtons mouseButton
)
new : 
        uiElement:UITechnologyElement * 
        mouseButton:MouseButtons -> DragAction
public function DragAction(
    uiElement : UITechnologyElement, 
    mouseButton : MouseButtons
)

Parameters

  • mouseButton
    Type: MouseButtons

    A member of the MouseButtons enumeration that indicates which button is pressed.

.NET Framework Security

See Also

Reference

DragAction Class

DragAction Overload

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

UITechnologyElement

MouseButtons