Gesture.Turn Method (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 ( _
point1 As Point, _
point2 As Point, _
rotationAngleInDegress As Double _
)
public static void Turn(
Point point1,
Point point2,
double rotationAngleInDegress
)
public:
static void Turn(
Point point1,
Point point2,
double rotationAngleInDegress
)
static member Turn :
point1:Point *
point2:Point *
rotationAngleInDegress:float -> unit
public static function Turn(
point1 : Point,
point2 : Point,
rotationAngleInDegress : double
)
Parameters
point1
Type: Microsoft.VisualStudio.TestTools.UITest.Input.PointThe focal point around which rotation is to be performed on the screen.
point2
Type: Microsoft.VisualStudio.TestTools.UITest.Input.PointA point on screen at which user places the second finger to perform a turn gesture.
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.