Share via


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

  • button
    Type: MouseButtons

    Mouse button that will be used for clicking.

  • modifierKeys
    Type: ModifierKeys

    Modifier keys to be pressed while clicking.

  • relativeCoordinate
    Type: Point

    Coordinates 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

See Also

Reference

Mouse Class

Microsoft.VisualStudio.TestTools.UITesting Namespace

UITestControl

MouseButtons

ModifierKeys

Point