Mouse.Click 方法 (UITestControl, MouseButtons, ModifierKeys, Point)
命名空間: Microsoft.VisualStudio.TestTools.UITesting
組件: Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
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
)
參數
- button
類型:MouseButtons
- modifierKeys
類型:ModifierKeys
- relativeCoordinate
類型:Point
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。