Mouse.Click Method (MouseButtons, ModifierKeys, Point)

Clicks the specified mouse button while holding the specified modifier keys at the specified location.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Shared Sub Click ( _
    button As MouseButtons, _
    modifierKeys As ModifierKeys, _
    screenCoordinate As Point _
)
public static void Click(
    MouseButtons button,
    ModifierKeys modifierKeys,
    Point screenCoordinate
)
public:
static void Click(
    MouseButtons button, 
    ModifierKeys modifierKeys, 
    Point screenCoordinate
)
static member Click : 
        button:MouseButtons * 
        modifierKeys:ModifierKeys * 
        screenCoordinate:Point -> unit 
public static function Click(
    button : MouseButtons, 
    modifierKeys : ModifierKeys, 
    screenCoordinate : Point
)

Parameters

.NET Framework Security

See Also

Reference

Mouse Class

Click Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace

MouseButtons

ModifierKeys

Point