Condividi tramite


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

Fare clic sul pulsante del mouse specificato nel controllo specificato mentre utilizzano i tasti di modifica specificati nella posizione specificata del 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