Partager via


Gesture.Swipe Method (UITestControl, Double)

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, _
    directionInDegrees As Double _
)
public static void Swipe(
    UITestControl control,
    double directionInDegrees
)
public:
static void Swipe(
    UITestControl^ control, 
    double directionInDegrees
)
static member Swipe : 
        control:UITestControl * 
        directionInDegrees:float -> unit
public static function Swipe(
    control : UITestControl, 
    directionInDegrees : double
)

Parameters

  • directionInDegrees
    Type: Double

    The direction of the swipe gesture in degrees. Value lies between [0,360].

.NET Framework Security

See Also

Reference

Gesture Class

Swipe Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace