Mouse.Hover Method (Point, Int32)
Pause the mouse at the specified point for a specified duration.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Sub Hover ( _
screenCoordinate As Point, _
millisecondsDuration As Integer _
)
public static void Hover(
Point screenCoordinate,
int millisecondsDuration
)
public:
static void Hover(
Point screenCoordinate,
int millisecondsDuration
)
static member Hover :
screenCoordinate:Point *
millisecondsDuration:int -> unit
public static function Hover(
screenCoordinate : Point,
millisecondsDuration : int
)
Parameters
screenCoordinate
Type: PointPoint on the screen to hover the mouse.
millisecondsDuration
Type: Int32Duration of the mouse hover.
.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.