Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Perform a pinch 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 Pinch ( _
control As UITestControl, _
relativePoint1 As Point, _
relativePoint2 As Point, _
distanceToMove As UInteger _
)
public static void Pinch(
UITestControl control,
Point relativePoint1,
Point relativePoint2,
uint distanceToMove
)
public:
static void Pinch(
UITestControl^ control,
Point relativePoint1,
Point relativePoint2,
unsigned int distanceToMove
)
static member Pinch :
control:UITestControl *
relativePoint1:Point *
relativePoint2:Point *
distanceToMove:uint32 -> unit
public static function Pinch(
control : UITestControl,
relativePoint1 : Point,
relativePoint2 : Point,
distanceToMove : uint
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlControl on which the pinch gesture is to be performed.
- relativePoint1
Type: Microsoft.VisualStudio.TestTools.UITest.Input.Point
- relativePoint2
Type: Microsoft.VisualStudio.TestTools.UITest.Input.Point
distanceToMove
Type: UInt32The distance each finger moves toward each other in pixels.
Remarks
Playback of a pinch 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.