执行是一个手指一个快速幻灯片短距离的一重击操作。 例如,在电子邮件中重击来选择它的收件箱或重击在平铺拉列表选择它。
命名空间: Microsoft.VisualStudio.TestTools.UITesting
程序集: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting(在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)
语法
声明
Public Shared Sub Swipe ( _
control As UITestControl, _
swipeDirection As UITestGestureDirection, _
swipeLength As Integer _
)
public static void Swipe(
UITestControl control,
UITestGestureDirection swipeDirection,
int swipeLength
)
public:
static void Swipe(
UITestControl^ control,
UITestGestureDirection swipeDirection,
int swipeLength
)
static member Swipe :
control:UITestControl *
swipeDirection:UITestGestureDirection *
swipeLength:int -> unit
public static function Swipe(
control : UITestControl,
swipeDirection : UITestGestureDirection,
swipeLength : int
)
参数
control
类型:Microsoft.VisualStudio.TestTools.UITesting.UITestControl重击笔势将执行的控件。
swipeDirection
类型:Microsoft.VisualStudio.TestTools.UITesting.UITestGestureDirection重击操作的说明 (up/down//右侧)。
swipeLength
类型:Int32为重击的长度 (以像素为单位)。
备注
重击操作的播放取决于屏幕分辨率。 如果分辨率改变,参数可能必须更改。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。