Mouse Members
.NET Framework 3.5
Represents the mouse device to a specific thread.
The Mouse type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddGotMouseCaptureHandler | Adds a handler for the GotMouseCapture attached event. |
|
AddLostMouseCaptureHandler | Adds a handler for the LostMouseCapture attached event. |
|
AddMouseDownHandler | Adds a handler for the MouseDown attached event. |
|
AddMouseEnterHandler | Adds a handler for the MouseEnter attached event. |
|
AddMouseLeaveHandler | Adds a handler for the MouseLeave attached event. |
|
AddMouseMoveHandler | Adds a handler for the MouseMove attached event. |
|
AddMouseUpHandler | Adds a handler for the MouseUp attached event. |
|
AddMouseWheelHandler | Adds a handler for the MouseWheel attached event. |
|
AddPreviewMouseDownHandler | Adds a handler for the PreviewMouseDown attached event. |
|
AddPreviewMouseDownOutsideCapturedElementHandler | Adds a handler for the PreviewMouseDownOutsideCapturedElement attached event. |
|
AddPreviewMouseMoveHandler | Adds a handler for the PreviewMouseMove attached event. |
|
AddPreviewMouseUpHandler | Adds a handler for the PreviewMouseUp attached event. |
|
AddPreviewMouseUpOutsideCapturedElementHandler | Adds a handler for the PreviewMouseUpOutsideCapturedElement attached event. |
|
AddPreviewMouseWheelHandler | Adds a handler for the PreviewMouseWheel attached event. |
|
AddQueryCursorHandler | Adds a handler for the QueryCursor attached event. |
|
Capture | Overloaded. Captures mouse input to the specified element. |
|
GetIntermediatePoints | Retrieves up to 64 previous coordinates of the mouse pointer since the last mouse move event. |
|
GetPosition | Gets the position of the mouse relative to a specified element. |
|
RemoveGotMouseCaptureHandler | Removes a handler for the GotMouseCapture attached event. |
|
RemoveLostMouseCaptureHandler | Removes a handler for the LostMouseCapture attached event. |
|
RemoveMouseDownHandler | Removes a handler for the MouseDown attached event. |
|
RemoveMouseEnterHandler | Removes a handler for the MouseEnter attached event. |
|
RemoveMouseLeaveHandler | Removes a handler for the MouseLeave attached event. |
|
RemoveMouseMoveHandler | Removes a handler for the MouseMove attached event. |
|
RemoveMouseUpHandler | Removes a handler for the MouseUp attached event. |
|
RemoveMouseWheelHandler | Removes a handler for the MouseWheel attached event. |
|
RemovePreviewMouseDownHandler | Removes a handler for the PreviewMouseDown attached event. |
|
RemovePreviewMouseDownOutsideCapturedElementHandler | Removes a handler for the PreviewMouseDownOutsideCapturedElement attached event. |
|
RemovePreviewMouseMoveHandler | Removes a handler for the PreviewMouseMove attached event. |
|
RemovePreviewMouseUpHandler | Removes a handler for the PreviewMouseUp attached event. |
|
RemovePreviewMouseUpOutsideCapturedElementHandler | Removes a handler for the PreviewMouseUpOutsideCapturedElement attached event. |
|
RemovePreviewMouseWheelHandler | Removes a handler for the PreviewMouseWheel attached event. |
|
RemoveQueryCursorHandler | Removes a handler for the QueryCursor attached event. |
|
SetCursor | Sets the mouse pointer to the specified Cursor. |
|
Synchronize | Forces the mouse to resynchronize. |
|
UpdateCursor | Forces the mouse cursor to be updated. |
| Name | Description | |
|---|---|---|
|
GotMouseCaptureEvent | Identifies the GotMouseCapture attached event. |
|
LostMouseCaptureEvent | Identifies the LostMouseCapture attached event. |
|
MouseDownEvent | Identifies the MouseDown attached event. |
|
MouseEnterEvent | Identifies the MouseEnter attached event. |
|
MouseLeaveEvent | Identifies the MouseLeave attached event. |
|
MouseMoveEvent | Identifies the MouseMove attached event. |
|
MouseUpEvent | Identifies the MouseUp attached event. |
|
MouseWheelDeltaForOneLine | Represents the number of units the mouse wheel is rotated to scroll one line. |
|
MouseWheelEvent | Identifies the MouseWheel attached event. |
|
PreviewMouseDownEvent | Identifies the PreviewMouseDown attached event. |
|
PreviewMouseDownOutsideCapturedElementEvent | Identifies the PreviewMouseDownOutsideCapturedElement attached event. |
|
PreviewMouseMoveEvent | Identifies the PreviewMouseMove attached event. |
|
PreviewMouseUpEvent | Identifies the PreviewMouseUp attached event. |
|
PreviewMouseUpOutsideCapturedElementEvent | Identifies the PreviewMouseUpOutsideCapturedElement attached event. |
|
PreviewMouseWheelEvent | Identifies the PreviewMouseWheel attached event. |
|
QueryCursorEvent | Identifies the QueryCursor attached event. |
| Name | Description | |
|---|---|---|
|
Captured | Gets the element that has captured the mouse. |
|
DirectlyOver | Gets the element the mouse pointer is directly over. |
|
LeftButton | Gets the state of the left button of the mouse. |
|
MiddleButton | Gets the state of the middle button of the mouse. |
|
OverrideCursor | Gets or sets the cursor for the entire application. |
|
PrimaryDevice | Gets the primary mouse device. |
|
RightButton | Gets the state of the right button. |
|
XButton1 | Gets the state of the first extended button. |
|
XButton2 | Gets the state of the second extended button. |
| Name | Description | |
|---|---|---|
|
GotMouseCapture | Occurs when an element captures the mouse. |
|
LostMouseCapture | Occurs when an element loses mouse capture. |
|
MouseDown | Occurs when any mouse button is depressed. |
|
MouseEnter | Occurs when the mouse pointer enters the boundaries of an element. |
|
MouseLeave | Occurs when the mouse pointer leaves the boundaries of an element. |
|
MouseMove | Occurs when the mouse pointer moves. |
|
MouseUp | Occurs when any mouse button is released. |
|
MouseWheel | Occurs when the mouse wheel is rotated. |
|
PreviewMouseDown | Occurs when any mouse button is depressed. |
|
PreviewMouseDownOutsideCapturedElement | Occurs when the primary mouse button is pressed outside the element that is capturing mouse events. |
|
PreviewMouseMove | Occurs when the mouse moves over an element. |
|
PreviewMouseUp | Occurs when any mouse button is released. |
|
PreviewMouseUpOutsideCapturedElement | Occurs when the primary mouse button is released outside the element that is capturing mouse events. |
|
PreviewMouseWheel | Occurs when the mouse wheel rotates. |
|
QueryCursor | Occurs when an element queries for the current mouse cursor. |