Mouse.ClickImplementation Method
Clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location that is relative to that control.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Protected Overridable Sub ClickImplementation ( _
control As UITestControl, _
button As MouseButtons, _
modifierKeys As ModifierKeys, _
relativeCoordinate As Point _
)
protected virtual void ClickImplementation(
UITestControl control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
)
protected:
virtual void ClickImplementation(
UITestControl^ control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
)
abstract ClickImplementation :
control:UITestControl *
button:MouseButtons *
modifierKeys:ModifierKeys *
relativeCoordinate:Point -> unit
override ClickImplementation :
control:UITestControl *
button:MouseButtons *
modifierKeys:ModifierKeys *
relativeCoordinate:Point -> unit
protected function ClickImplementation(
control : UITestControl,
button : MouseButtons,
modifierKeys : ModifierKeys,
relativeCoordinate : Point
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlControl to be clicked.
button
Type: MouseButtonsMouse button that will be used for clicking.
modifierKeys
Type: ModifierKeysModifier keys to be pressed while clicking.
relativeCoordinate
Type: PointCoordinates that are relative to the control. If control is nulla null reference (Nothing in Visual Basic), the relativeCoordinate specifies an absolute coordinate.
.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.