Mouse.Click Method (MouseButtons)
Clicks the specified mouse button.
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 _
)
public static void Click(
MouseButtons button
)
public:
static void Click(
MouseButtons button
)
static member Click :
button:MouseButtons -> unit
public static function Click(
button : MouseButtons
)
Parameters
- button
Type: System.Windows.Forms.MouseButtons
The MouseButtons that will be used for clicking.
.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.