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
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlControl on which the swipe gesture is to be performed.
directionInDegrees
Type: DoubleThe direction of the swipe gesture in degrees. Value lies between [0,360].
.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.