Partager via


Gesture.Stretch Method (UITestControl, 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 ( _
    control As UITestControl, _
    relativePoint1 As Point, _
    relativePoint2 As Point, _
    distanceToMove As UInteger _
)
public static void Stretch(
    UITestControl control,
    Point relativePoint1,
    Point relativePoint2,
    uint distanceToMove
)
public:
static void Stretch(
    UITestControl^ control, 
    Point relativePoint1, 
    Point relativePoint2, 
    unsigned int distanceToMove
)
static member Stretch : 
        control:UITestControl * 
        relativePoint1:Point * 
        relativePoint2:Point * 
        distanceToMove:uint32 -> unit
public static function Stretch(
    control : UITestControl, 
    relativePoint1 : Point, 
    relativePoint2 : Point, 
    distanceToMove : uint
)

Parameters

  • distanceToMove
    Type: UInt32

    The 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

See Also

Reference

Gesture Class

Stretch Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace