Mouse.DoubleClick 方法 (UITestControl, MouseButtons, ModifierKeys, Point)

按住指定的修改键并在指定控件上相对于该控件的指定位置双击指定鼠标按钮。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

语法

声明
Public Shared Sub DoubleClick ( _
    control As UITestControl, _
    button As MouseButtons, _
    modifierKeys As ModifierKeys, _
    relativeCoordinates As Point _
)
public static void DoubleClick(
    UITestControl control,
    MouseButtons button,
    ModifierKeys modifierKeys,
    Point relativeCoordinates
)
public:
static void DoubleClick(
    UITestControl^ control, 
    MouseButtons button, 
    ModifierKeys modifierKeys, 
    Point relativeCoordinates
)
static member DoubleClick : 
        control:UITestControl * 
        button:MouseButtons * 
        modifierKeys:ModifierKeys * 
        relativeCoordinates:Point -> unit 
public static function DoubleClick(
    control : UITestControl, 
    button : MouseButtons, 
    modifierKeys : ModifierKeys, 
    relativeCoordinates : Point
)

参数

.NET Framework 安全性

请参见

参考

Mouse 类

DoubleClick 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间

UITestControl

MouseButtons

ModifierKeys