Provides mouse actions and events.
| C# | Visual Basic | Visual C++ |
public class Mouse
Public Class Mouse
public ref class Mouse
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| Mouse()()() | Initializes a new instance of the Mouse class | |
| ButtonDown(MouseButtons) |
Presses the specified mouse button.
| |
| ButtonUp(MouseButtons) |
Releases the specified mouse button.
| |
| Click()()() |
Clicks the left mouse button.
| |
| Click(MouseButtons) |
Clicks the specified mouse buttons.
| |
| Click(MouseButtons, Duration) |
Clicks the specified mouse buttons.
| |
| Click(MouseButtons, Int32, Duration) |
Clicks the specified mouse buttons the specified number of times.
| |
| Click(Element) |
Clicks on the element with the left mouse button.
| |
| Click(Element, MouseButtons) |
Clicks on the element with the specified mouse buttons.
| |
| Click(Element, Location) |
Clicks on the element with the left mouse button at a specific location location.
| |
| Click(Element, Duration) |
Clicks on the element with the left mouse button.
| |
| Click(Element, MouseButtons, Location) |
Clicks on the element with the specified mouse buttons at a specific location location.
| |
| Click(Element, MouseButtons, Int32) |
Clicks on the element with the specified mouse buttons the specified number of times.
| |
| Click(Element, MouseButtons, Duration) |
Clicks on the element with the specified mouse buttons.
| |
| Click(Element, Location, Duration) |
Clicks on the element at a specific location.
| |
| Click(Element, Int32, Duration) |
Clicks on the element with the left mouse button the specified number of times.
| |
| Click(Element, MouseButtons, Location, Int32) |
Clicks on the element with the specified mouse buttons at a given location the specified number of times.
| |
| Click(Element, MouseButtons, Location, Duration) |
Clicks on the element with the specified mouse buttons at a given location.
| |
| Click(Element, MouseButtons, Int32, Duration) |
Clicks on the element with the specified mouse buttons the specified number of times.
| |
| Click(Element, Location, Int32, Duration) |
Clicks on the element at a specific location, with the left mouse button, the specified number of times.
| |
| Click(Element, MouseButtons, Location, Int32, Duration) |
Clicks at the specified location relative to the element with the specified mouse
buttons the specified number of times.
| |
| Click(Int32, Int32) |
Clicks at point with the left mouse button.
| |
| Click(Point) |
Clicks at point with the left mouse button.
| |
| Click(Int32, Int32, MouseButtons) |
Clicks at point with the specified mouse buttons.
| |
| Click(Point, MouseButtons) |
Clicks at point with the specified mouse buttons.
| |
| Click(Int32, Int32, Duration) |
Clicks at point with the left mouse button.
| |
| Click(Point, Duration) |
Clicks at point with the left mouse button.
| |
| Click(Int32, Int32, MouseButtons, Duration) |
Clicks at point with the specified mouse buttons.
| |
| Click(Point, MouseButtons, Duration) |
Clicks at point with the specified mouse buttons.
| |
| Click(Int32, Int32, Int32, Duration) |
Clicks at point with the left mouse button the specified number of times.
| |
| Click(Point, Int32, Duration) |
Clicks at point with the left mouse button the specified number of times.
| |
| Click(Int32, Int32, MouseButtons, Int32, Duration) |
Clicks at point with the specified mouse buttons the specified number of times.
| |
| Click(Point, MouseButtons, Int32, Duration) |
Clicks at point with the specified mouse buttons the specified number of times.
| |
| Cursor |
Returns the currently displayed mouse cursor.
| |
| CursorName |
Gets the name of the current mouse Cursor. If the cursor is not a system cursor,
but a custom cursor, the name is 'Custom' plus its Handle value.
| |
| DefaultClickTime |
Gets ors sets the default time of a mouse click, i.e. the time elapsed between
the mouse button being pressed (Down event) and released again
(Up event).
| |
| DefaultMoveTime |
Gets or sets the default time it takes to move the mouse to a specified position.
| |
| DoubleClick()()() |
DoubleClicks the left mouse button.
| |
| DoubleClick(MouseButtons) |
DoubleClicks the specified mouse buttons.
| |
| DoubleClick(MouseButtons, Duration) |
DoubleClicks the specified mouse buttons.
| |
| DoubleClick(Element) |
DoubleClicks on the element with the left mouse button.
| |
| DoubleClick(Element, MouseButtons) |
DoubleClicks on the element with the specified mouse buttons.
| |
| DoubleClick(Element, Location) |
DoubleClicks on the element with the left mouse button at a specific location location.
| |
| DoubleClick(Element, Duration) |
DoubleClicks on the element with the left mouse button.
| |
| DoubleClick(Element, MouseButtons, Location) |
DoubleClicks on the element with the specified mouse buttons at a specific location location.
| |
| DoubleClick(Element, MouseButtons, Duration) |
DoubleClicks on the element with the specified mouse buttons.
| |
| DoubleClick(Element, Location, Duration) |
DoubleClicks on the element at a specific location.
| |
| DoubleClick(Element, MouseButtons, Location, Duration) |
DoubleClicks on the element with the specified mouse buttons at a given location.
| |
| DoubleClick(Point) |
DoubleClicks at point with the left mouse button.
| |
| DoubleClick(Point, MouseButtons) |
DoubleClicks at point with the specified mouse buttons.
| |
| DoubleClick(Point, Duration) |
DoubleClicks at point with the left mouse button.
| |
| DoubleClick(Point, MouseButtons, Duration) |
DoubleClicks at point with the specified mouse buttons.
| |
| Down |
Occurs when a mouse button is pressed.
| |
| Enabled |
Gets or sets a value indicating whether physical mouse actions are enabled.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetCursorImage()()() |
Returns an image of the current mouse Cursor.
| |
| GetCursorImage(Cursor) |
Returns an image of the cursor.
| |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| HorizontalWheel |
Occurs when the horizontal mouse wheel is scrolled.
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Move |
Occurs when the mouse is moved.
| |
| MoveTo(Element) |
Moves the mouse to the specified element.
| |
| MoveTo(Element, Duration) |
Moves the mouse to the specified element.
| |
| MoveTo(Element, Location) |
Moves the mouse to the specified location in the element.
| |
| MoveTo(Element, Location, Duration) |
Moves the mouse to the specified location in the element.
| |
| MoveTo(Int32, Int32) |
Moves the mouse to the specified point.
| |
| MoveTo(Point) |
Moves the mouse to the specified point.
| |
| MoveTo(Int32, Int32, Duration) |
Moves the mouse to the specified point.
| |
| MoveTo(Point, Duration) |
Moves the mouse to the specified point.
| |
| MoveTo(Int32, Int32, Double) |
Moves the mouse to the specified point.
| |
| MoveTo(Point, Double) |
Moves the mouse to the specified point.
| |
| Position |
Gets or sets the current position of the mouse in screen coordinates (pixels).
| |
| ScrollHorizontalWheel(Int32) |
Scrolls the horizontal mouse wheel.
| |
| ScrollHorizontalWheel(Double) |
Scrolls the horizontal mouse wheel.
| |
| ScrollWheel(Int32) |
Scrolls the mouse wheel.
| |
| ScrollWheel(Double) |
Scrolls the mouse wheel.
| |
| ToString()()() | (Inherited from Object.) | |
| Up |
Occurs when a mouse button is released.
| |
| Wheel |
Occurs when the mouse wheel is scrolled.
|
| Object | |
| Mouse | |
