Export (0) Print
Expand All

Mouse Methods

The Mouse type exposes the following members.

  NameDescription
Public method Static member Click() Clicks the default mouse button.
Public method Static member Click(Point) Clicks the default mouse button at the specified location.
Public method Static member Click(MouseButtons) Clicks the specified mouse button.
Public method Static member Click(ModifierKeys) Clicks the default mouse button while holding the specified modifier keys.
Public method Static member Click(UITestControl) Clicks the default mouse button on the specified control.
Public method Static member Click(UITestControl, Point) Clicks the default mouse button on the specified control at the specified location relative to that control.
Public method Static member Click(UITestControl, MouseButtons) Clicks the specified mouse button on the specified control.
Public method Static member Click(UITestControl, ModifierKeys) Clicks the default mouse button on the specified control while holding the specified modifier keys.
Public method Static member Click(MouseButtons, ModifierKeys, Point) Clicks the specified mouse button while holding the specified modifier keys at the specified location.
Public method Static member Click(UITestControl, MouseButtons, ModifierKeys, Point) Clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location relative to that control.
Protected method ClickImplementation Clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location that is relative to that control.
Public method Dispose() Releases all resources that are used by the current instance of the Mouse class.
Protected method Dispose(Boolean) Cleans up any resources that are used.
Public method Static member DoubleClick() Double-clicks the mouse button.
Public method Static member DoubleClick(Point) Double-clicks the default mouse button at the specified location.
Public method Static member DoubleClick(MouseButtons) Double-clicks the specified mouse button.
Public method Static member DoubleClick(ModifierKeys) Double-clicks the default mouse button that has modifiers.
Public method Static member DoubleClick(UITestControl) Double-clicks the default mouse button on the specified control.
Public method Static member DoubleClick(UITestControl, Point) Double-clicks the default mouse button on the specified control at the specified location that is relative to the control.
Public method Static member DoubleClick(UITestControl, MouseButtons) Double-clicks the specified mouse button on the specified control.
Public method Static member DoubleClick(UITestControl, ModifierKeys) Double-clicks the default mouse button on the control with modifiers.
Public method Static member DoubleClick(MouseButtons, ModifierKeys, Point) Double-clicks the specified mouse button while holding the specified modifier keys at the specified screen location.
Public method Static member DoubleClick(UITestControl, MouseButtons, ModifierKeys, Point) Double-clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location that is relative to that control.
Protected method DoubleClickImplementation Double-clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location that is relative to that control.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize The finalizer method. (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member Hover(Point) Moves the mouse to the specified location.
Public method Static member Hover(UITestControl) Pauses the mouse on the specified control.
Public method Static member Hover(Point, Int32) Pause the mouse at the specified point for a specified duration.
Public method Static member Hover(UITestControl, Point) Moves the mouse to the specified location that is relative to the specified control.
Public method Static member Hover(UITestControl, Point, Int32) Pauses the mouse at the specified location that is relative to the specified control for a specified duration.
Protected method HoverImplementation Pauses the mouse at the specified location that is relative to the specified control for a specified duration.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Move(Point) Moves the mouse to the specified location.
Public method Static member Move(UITestControl, Point) Moves the mouse to the specified location that is relative to the specified control.
Protected method MoveImplementation Moves the mouse to the specified location that is relative to the specified control.
Public method Static member MoveScrollWheel(Int32) Scrolls the mouse wheel the specified number of times.
Public method Static member MoveScrollWheel(Int32, ModifierKeys) Scrolls the mouse wheel the specified number of times while pressing the specified modifier keys.
Public method Static member MoveScrollWheel(UITestControl, Int32) Scrolls the mouse wheel on the specified control the specified number of times.
Public method Static member MoveScrollWheel(UITestControl, Int32, ModifierKeys) Scrolls the mouse wheel on the specified control the specified number of times while pressing the specified modifier keys.
Protected method MoveScrollWheelImplementation Scrolls the mouse wheel on the specified control the specified number of times while pressing the specified modifier keys.
Public method Static member StartDragging() Starts dragging the mouse.
Public method Static member StartDragging(UITestControl) Starts dragging the mouse from the specified control.
Public method Static member StartDragging(UITestControl, Point) Starts dragging the mouse from the specified point that is relative to the specified control or from an absolute control, if control is null.
Public method Static member StartDragging(UITestControl, MouseButtons) Starts dragging the mouse while holding down the specified mouse buttons from the specified control.
Public method Static member StartDragging(UITestControl, Point, MouseButtons, ModifierKeys) Starts dragging the mouse while holding down the specified mouse buttons and the specified keys from the specified point that is relative to the specified control or from an absolute control, if control is null.
Protected method StartDraggingImplementation Starts dragging the mouse while holding down the specified mouse buttons and the specified keys from the specified point relative to the specified control or from an absolute control, if control is null.
Public method Static member StopDragging(Point) Stops the drag operation.
Public method Static member StopDragging(UITestControl) Stops the drag operation on the specified control.
Public method Static member StopDragging(Int32, Int32) Stops the drag operation.
Public method Static member StopDragging(UITestControl, Point) Stops the drag operation on the specified control.
Public method Static member StopDragging(UITestControl, Int32, Int32) Stops the drag operation on the specified control.
Protected method StopDraggingImplementation Stops the drag operation on the specified control.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft