Mouse.Click Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Click()
public:
static void Click();
public static void Click ();
static member Click : unit -> unit
Public Shared Sub Click ()
Applies to
Click(UITestControl)
public:
static void Click(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control);
public static void Click (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control);
static member Click : Microsoft.VisualStudio.TestTools.UITesting.UITestControl -> unit
Public Shared Sub Click (control As UITestControl)
Parameters
- control
- UITestControl
Applies to
Click(Point)
public:
static void Click(System::Drawing::Point screenCoordinate);
public static void Click (System.Drawing.Point screenCoordinate);
static member Click : System.Drawing.Point -> unit
Public Shared Sub Click (screenCoordinate As Point)
Parameters
- screenCoordinate
- Point
Applies to
Click(MouseButtons)
public:
static void Click(System::Windows::Forms::MouseButtons button);
public static void Click (System.Windows.Forms.MouseButtons button);
static member Click : System.Windows.Forms.MouseButtons -> unit
Public Shared Sub Click (button As MouseButtons)
Parameters
- button
- MouseButtons
Applies to
Click(ModifierKeys)
public:
static void Click(System::Windows::Input::ModifierKeys modifierKeys);
public static void Click (System.Windows.Input.ModifierKeys modifierKeys);
static member Click : System.Windows.Input.ModifierKeys -> unit
Public Shared Sub Click (modifierKeys As ModifierKeys)
Parameters
- modifierKeys
- ModifierKeys
Applies to
Click(UITestControl, Point)
public:
static void Click(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::Drawing::Point relativeCoordinate);
public static void Click (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, System.Drawing.Point relativeCoordinate);
static member Click : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * System.Drawing.Point -> unit
Public Shared Sub Click (control As UITestControl, relativeCoordinate As Point)
Parameters
- control
- UITestControl
- relativeCoordinate
- Point
Applies to
Click(UITestControl, MouseButtons)
public:
static void Click(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::Windows::Forms::MouseButtons button);
public static void Click (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, System.Windows.Forms.MouseButtons button);
static member Click : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * System.Windows.Forms.MouseButtons -> unit
Public Shared Sub Click (control As UITestControl, button As MouseButtons)
Parameters
- control
- UITestControl
- button
- MouseButtons
Applies to
Click(UITestControl, ModifierKeys)
public:
static void Click(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::Windows::Input::ModifierKeys modifierKeys);
public static void Click (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, System.Windows.Input.ModifierKeys modifierKeys);
static member Click : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * System.Windows.Input.ModifierKeys -> unit
Public Shared Sub Click (control As UITestControl, modifierKeys As ModifierKeys)
Parameters
- control
- UITestControl
- modifierKeys
- ModifierKeys
Applies to
Click(MouseButtons, ModifierKeys, Point)
public:
static void Click(System::Windows::Forms::MouseButtons button, System::Windows::Input::ModifierKeys modifierKeys, System::Drawing::Point screenCoordinate);
public static void Click (System.Windows.Forms.MouseButtons button, System.Windows.Input.ModifierKeys modifierKeys, System.Drawing.Point screenCoordinate);
static member Click : System.Windows.Forms.MouseButtons * System.Windows.Input.ModifierKeys * System.Drawing.Point -> unit
Public Shared Sub Click (button As MouseButtons, modifierKeys As ModifierKeys, screenCoordinate As Point)
Parameters
- button
- MouseButtons
- modifierKeys
- ModifierKeys
- screenCoordinate
- Point
Applies to
Click(UITestControl, MouseButtons, ModifierKeys, Point)
public:
static void Click(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::Windows::Forms::MouseButtons button, System::Windows::Input::ModifierKeys modifierKeys, System::Drawing::Point relativeCoordinate);
public static void Click (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, System.Windows.Forms.MouseButtons button, System.Windows.Input.ModifierKeys modifierKeys, System.Drawing.Point relativeCoordinate);
static member Click : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * System.Windows.Forms.MouseButtons * System.Windows.Input.ModifierKeys * System.Drawing.Point -> unit
Public Shared Sub Click (control As UITestControl, button As MouseButtons, modifierKeys As ModifierKeys, relativeCoordinate As Point)
Parameters
- control
- UITestControl
- button
- MouseButtons
- modifierKeys
- ModifierKeys
- relativeCoordinate
- Point