Partilhar via


Método Mouse.Click (UITestControl, MouseButtons, ModifierKeys, Point)

Clica no botão do mouse especificada no controle especificado enquanto pressiona as teclas modificadoras especificado no local especificado em relação ao controle.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (em Microsoft.VisualStudio.TestTools.UITesting.dll)

Sintaxe

'Declaração
Public Shared Sub Click ( _
    control As UITestControl, _
    button As MouseButtons, _
    modifierKeys As ModifierKeys, _
    relativeCoordinate As Point _
)
public static void Click(
    UITestControl control,
    MouseButtons button,
    ModifierKeys modifierKeys,
    Point relativeCoordinate
)
public:
static void Click(
    UITestControl^ control, 
    MouseButtons button, 
    ModifierKeys modifierKeys, 
    Point relativeCoordinate
)
static member Click : 
        control:UITestControl * 
        button:MouseButtons * 
        modifierKeys:ModifierKeys * 
        relativeCoordinate:Point -> unit 
public static function Click(
    control : UITestControl, 
    button : MouseButtons, 
    modifierKeys : ModifierKeys, 
    relativeCoordinate : Point
)

Parâmetros

  • relativeCoordinate
    Tipo: System.Drawing.Point
    Ponto em que é relativa ao controle de ser clicado.

Segurança do .NET Framework

Consulte também

Referência

Mouse Classe

Sobrecargas Click

Namespace Microsoft.VisualStudio.TestTools.UITesting

UITestControl

MouseButtons

ModifierKeys

Point