Partager via


Gesture.Flick Method (UITestControl, Point, Int32, Double, Int32)

Perform a flick gesture which is associated with quickly moving your finger in the direction you want resulting in a rapid scroll.

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

Syntax

'Declaration
Public Shared Sub Flick ( _
    control As UITestControl, _
    relativeStartPoint As Point, _
    flickLength As Integer, _
    directionInDegrees As Double, _
    durationInMilliseconds As Integer _
)
public static void Flick(
    UITestControl control,
    Point relativeStartPoint,
    int flickLength,
    double directionInDegrees,
    int durationInMilliseconds
)
public:
static void Flick(
    UITestControl^ control, 
    Point relativeStartPoint, 
    int flickLength, 
    double directionInDegrees, 
    int durationInMilliseconds
)
static member Flick : 
        control:UITestControl * 
        relativeStartPoint:Point * 
        flickLength:int * 
        directionInDegrees:float * 
        durationInMilliseconds:int -> unit
public static function Flick(
    control : UITestControl, 
    relativeStartPoint : Point, 
    flickLength : int, 
    directionInDegrees : double, 
    durationInMilliseconds : int
)

Parameters

  • flickLength
    Type: Int32

    Length of the flick gesture in pixels.

  • directionInDegrees
    Type: Double

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

  • durationInMilliseconds
    Type: Int32

    Duration of the flick gesture in milliseconds.

Remarks

Playback of a flick gesture depends on screen resolution. If the resolution changes, the parameters may have to be changed.

.NET Framework Security

See Also

Reference

Gesture Class

Flick Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace