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
public DragAction(
UITechnologyElement uiElement,
MouseButtons mouseButton
)
public:
DragAction(
UITechnologyElement^ uiElement,
MouseButtons mouseButton
)
new :
uiElement:UITechnologyElement *
mouseButton:MouseButtons -> DragAction
Public Sub New (
uiElement As UITechnologyElement,
mouseButton As MouseButtons
)
Parameters
uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementA UITechnologyElement object.
mouseButton
Type: System.Windows.Forms.MouseButtonsA member of the MouseButtons enumeration that indicates which button is pressed.
See Also
UITechnologyElement
MouseButtons
DragAction Overload
DragAction Class
Microsoft.VisualStudio.TestTools.UITest.Common Namespace
Return to top