Class Mouse
Represents the mouse device.
public static class Mouse
- Inheritance
-
Mouse
Fields
- MouseWheelDeltaForOneLine
The number of units the mouse wheel should be rotated to scroll one line.
Properties
- Handler
Gets or sets IMouseHandler used to access mouse.
- IsMousePresent
Gets whether mouse is present.
- LeftButton
The state of the left button.
- MiddleButton
The state of the middle button.
- RightButton
The state of the right button.
- XButton1
The state of the first extended button.
- XButton2
The state of the second extended button.
Methods
- GetButtonState(MouseButton)
Gets mouse button state.
- GetPosition(AbstractControl?)
Calculates the position of the mouse relative to a particular element.
- GetPosition(double)
Gets mouse button position.
- RaiseMoved(object, MouseEventArgs)
Raises Moved event.
Events
- Moved
Occurs when any of the controls receives mouse move event.