Share via


MouseAction Constructor (MouseButtons, MouseActionType)

Initializes a new instance of the MouseAction class by using the provided 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 ( _
    button As MouseButtons, _
    actionType As MouseActionType _
)
public MouseAction(
    MouseButtons button,
    MouseActionType actionType
)
public:
MouseAction(
    MouseButtons button, 
    MouseActionType actionType
)
new : 
        button:MouseButtons * 
        actionType:MouseActionType -> MouseAction
public function MouseAction(
    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

MouseButtons

MouseActionType