Gesture.Slide Method (UITestControl, Point, Point)
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 _
)
public static void Slide(
UITestControl control,
Point relativeStartPoint,
Point relativeEndPoint
)
public:
static void Slide(
UITestControl^ control,
Point relativeStartPoint,
Point relativeEndPoint
)
static member Slide :
control:UITestControl *
relativeStartPoint:Point *
relativeEndPoint:Point -> unit
public static function Slide(
control : UITestControl,
relativeStartPoint : Point,
relativeEndPoint : Point
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlControl on which the slide gesture is to be performed.
- relativeStartPoint
Type: Microsoft.VisualStudio.TestTools.UITest.Input.Point
- relativeEndPoint
Type: Microsoft.VisualStudio.TestTools.UITest.Input.Point
Remarks
Playback of a slide 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.