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 press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
Syntax
'Declaration
Public Shared Sub PressAndHold ( _
screenCoordinates As Point _
)
public static void PressAndHold(
Point screenCoordinates
)
public:
static void PressAndHold(
Point screenCoordinates
)
static member PressAndHold :
screenCoordinates:Point -> unit
public static function PressAndHold(
screenCoordinates : Point
)
Parameters
screenCoordinates
Type: Microsoft.VisualStudio.TestTools.UITest.Input.PointThe coordinates on the screen where the press and hold gesture is to be performed.
Remarks
Playback of a press and hold 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.