Share via


MouseAction Constructor (UITechnologyElement, MouseButtons, MouseActionType)

Initializes a new instance of the MouseAction class by using the provided element, button designation, and type of action.

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, _
    button As MouseButtons, _
    actionType As MouseActionType _
)
public MouseAction(
    UITechnologyElement uiElement,
    MouseButtons button,
    MouseActionType actionType
)
public:
MouseAction(
    UITechnologyElement^ uiElement, 
    MouseButtons button, 
    MouseActionType actionType
)
new : 
        uiElement:UITechnologyElement * 
        button:MouseButtons * 
        actionType:MouseActionType -> MouseAction
public function MouseAction(
    uiElement : UITechnologyElement, 
    button : MouseButtons, 
    actionType : MouseActionType
)

Parameters

  • button
    Type: MouseButtons

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

.NET Framework Security

See Also

Reference

MouseAction Class

MouseAction Overload

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

UITechnologyElement

MouseButtons

MouseActionType