Gesture.Stretch Method (Point, Point, UInt32)
Perform a stretch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
Syntax
'Declaration
Public Shared Sub Stretch ( _
point1 As Point, _
point2 As Point, _
distanceToMove As UInteger _
)
public static void Stretch(
Point point1,
Point point2,
uint distanceToMove
)
public:
static void Stretch(
Point point1,
Point point2,
unsigned int distanceToMove
)
static member Stretch :
point1:Point *
point2:Point *
distanceToMove:uint32 -> unit
public static function Stretch(
point1 : Point,
point2 : Point,
distanceToMove : uint
)
Parameters
point1
Type: Microsoft.VisualStudio.TestTools.UITest.Input.PointA point on screen at which user places one of two fingers to perform a stretch gesture.
point2
Type: Microsoft.VisualStudio.TestTools.UITest.Input.PointA point on screen at which user places the second finger to perform a stretch gesture.
distanceToMove
Type: UInt32The distance each finger moves away from each other in pixels.
Remarks
Playback of a stretch 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.