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
button
Type: MouseButtonsMouseButtons to click.
modifierKeys
Type: ModifierKeysModifierKeys to be pressed while clicking.
screenCoordinate
Type: PointPoint on the screen to click.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.