Gesture.Turn Method (UITestControl, Point, Point, Double)
Perform a turn gesture.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
Syntax
'Declaration
Public Shared Sub Turn ( _
control As UITestControl, _
relativePoint1 As Point, _
relativePoint2 As Point, _
rotationAngleInDegress As Double _
)
public static void Turn(
UITestControl control,
Point relativePoint1,
Point relativePoint2,
double rotationAngleInDegress
)
public:
static void Turn(
UITestControl^ control,
Point relativePoint1,
Point relativePoint2,
double rotationAngleInDegress
)
static member Turn :
control:UITestControl *
relativePoint1:Point *
relativePoint2:Point *
rotationAngleInDegress:float -> unit
public static function Turn(
control : UITestControl,
relativePoint1 : Point,
relativePoint2 : Point,
rotationAngleInDegress : double
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlControl on which the turn gesture is to be performed.
- relativePoint1
Type: Microsoft.VisualStudio.TestTools.UITest.Input.Point
- relativePoint2
Type: Microsoft.VisualStudio.TestTools.UITest.Input.Point
rotationAngleInDegress
Type: DoubleThe angle of turn. Value lies between [-360,360].
Remarks
Playback of a turn 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.