Delen via


Gesture.Swipe Method (UITestControl, UITestGestureDirection)

Perform a swipe gesture which is a quick slide of a finger for a short distance. For example, swipe across an email in your inbox to select it or swipe down on a tile to select it.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Syntax

'Declaration
Public Shared Sub Swipe ( _
    control As UITestControl, _
    swipeDirection As UITestGestureDirection _
)
public static void Swipe(
    UITestControl control,
    UITestGestureDirection swipeDirection
)
public:
static void Swipe(
    UITestControl^ control, 
    UITestGestureDirection swipeDirection
)
static member Swipe : 
        control:UITestControl * 
        swipeDirection:UITestGestureDirection -> unit
public static function Swipe(
    control : UITestControl, 
    swipeDirection : UITestGestureDirection
)

Parameters

.NET Framework Security

See Also

Reference

Gesture Class

Swipe Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace