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 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 ( _
    startPoint As Point, _
    flickLength As Integer, _
    flickDirection As UITestGestureDirection, _
    durationInMilliseconds As Integer _
)
public static void Flick(
    Point startPoint,
    int flickLength,
    UITestGestureDirection flickDirection,
    int durationInMilliseconds
)
public:
static void Flick(
    Point startPoint, 
    int flickLength, 
    UITestGestureDirection flickDirection, 
    int durationInMilliseconds
)
static member Flick : 
        startPoint:Point * 
        flickLength:int * 
        flickDirection:UITestGestureDirection * 
        durationInMilliseconds:int -> unit
public static function Flick(
    startPoint : Point, 
    flickLength : int, 
    flickDirection : UITestGestureDirection, 
    durationInMilliseconds : int
)
Parameters
- startPoint 
 Type: Microsoft.VisualStudio.TestTools.UITest.Input.Point- Point on the screen where the flick gesture is to originate. 
- flickLength 
 Type: Int32- Length of the flick gesture in pixels. 
- flickDirection 
 Type: Microsoft.VisualStudio.TestTools.UITesting.UITestGestureDirection- The direction of the flick gesture (Up/Down/Left/Right). 
- 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
- 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.