Mouse.DoubleClick Method (MouseButtons, ModifierKeys, Point)
Double-clicks the specified mouse button while holding the specified modifier keys at the specified screen location.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Sub DoubleClick ( _
button As MouseButtons, _
modifierKeys As ModifierKeys, _
screenCoordinates As Point _
)
public static void DoubleClick(
MouseButtons button,
ModifierKeys modifierKeys,
Point screenCoordinates
)
public:
static void DoubleClick(
MouseButtons button,
ModifierKeys modifierKeys,
Point screenCoordinates
)
static member DoubleClick :
button:MouseButtons *
modifierKeys:ModifierKeys *
screenCoordinates:Point -> unit
public static function DoubleClick(
button : MouseButtons,
modifierKeys : ModifierKeys,
screenCoordinates : Point
)
Parameters
- button
Type: System.Windows.Forms.MouseButtons
MouseButtons to double-click.
- modifierKeys
Type: System.Windows.Input.ModifierKeys
ModifierKeys keys to be pressed while double-clicking.
- screenCoordinates
Type: System.Drawing.Point
Point on the screen to double-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.