Delen via


Gesture.Slide Method (UITestControl, Point, Point, Int32)

Perform a slide gesture. A slide gesture is used primarily for panning interactions but can also be used for moving, drawing, or writing.

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

Syntax

'Declaration
Public Shared Sub Slide ( _
    control As UITestControl, _
    relativeStartPoint As Point, _
    relativeEndPoint As Point, _
    durationInMilliseconds As Integer _
)
public static void Slide(
    UITestControl control,
    Point relativeStartPoint,
    Point relativeEndPoint,
    int durationInMilliseconds
)
public:
static void Slide(
    UITestControl^ control, 
    Point relativeStartPoint, 
    Point relativeEndPoint, 
    int durationInMilliseconds
)
static member Slide : 
        control:UITestControl * 
        relativeStartPoint:Point * 
        relativeEndPoint:Point * 
        durationInMilliseconds:int -> unit
public static function Slide(
    control : UITestControl, 
    relativeStartPoint : Point, 
    relativeEndPoint : Point, 
    durationInMilliseconds : int
)

Parameters

  • durationInMilliseconds
    Type: Int32

    The duration of the gesture in milliseconds.

Remarks

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

.NET Framework Security

See Also

Reference

Gesture Class

Slide Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace