Condividi tramite


Metodo Mouse.Click (UITestControl, MouseButtons, ModifierKeys, Point)

Esegue il clic con il pulsante del mouse indicato sul controllo specificato mentre vengono premuti i tasti di modifica specificati in corrispondenza della posizione designata relativa a tale controllo.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Sintassi

'Dichiarazione
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
)

Parametri

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Mouse Classe

Overload Click

Spazio dei nomi Microsoft.VisualStudio.TestTools.UITesting

UITestControl

MouseButtons

ModifierKeys

Point