Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- control 
 Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl- Control on which the swipe gesture is to be performed. 
- swipeDirection 
 Type: Microsoft.VisualStudio.TestTools.UITesting.UITestGestureDirection- The direction of the swipe gesture (Up/Down/Left/Right). 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.