Mouse Mouse Mouse Mouse Class

定義

特定のスレッドに対するマウス デバイスを表します。Represents the mouse device to a specific thread.

public ref class Mouse abstract sealed
public static class Mouse
type Mouse = class
Public Class Mouse
継承
MouseMouseMouseMouse

注釈

Mouseクラスは、マウスを提供します。 関連するイベント、メソッド、およびマウスの状態に関する情報を提供するプロパティ。The Mouse class provides mouse related events, methods and, properties which provide information regarding the state of the mouse.

各イベントをMouse基本要素クラスで添付イベントが再公開も定義UIElementContentElement新しいルーティング イベントとして。Each event that Mouse defines as an attached event is also re-exposed by the base element classes UIElement and ContentElement as a new routed event. 一般に、アプリケーションのマウス イベントを処理する方が便利ですUIElementContentElementを使用してではなく、Mouseイベント。Generally, it is more convenient to handle mouse events for an application on UIElement and ContentElement, rather than using the Mouse events. 詳細については、次を参照してください。入力の概要します。For details, see Input Overview.

静的メンバー、MouseクラスのデリゲートをプライマリMouseDeviceの呼び出し元スレッドの入力マネージャー。The static members of the Mouse class delegate to the primary MouseDevice of the calling thread's input manager.

フィールド

GotMouseCaptureEvent GotMouseCaptureEvent GotMouseCaptureEvent GotMouseCaptureEvent

GotMouseCapture 添付イベントを識別します。Identifies the GotMouseCapture attached event.

LostMouseCaptureEvent LostMouseCaptureEvent LostMouseCaptureEvent LostMouseCaptureEvent

LostMouseCapture 添付イベントを識別します。Identifies the LostMouseCapture attached event.

MouseDownEvent MouseDownEvent MouseDownEvent MouseDownEvent

MouseDown 添付イベントを識別します。Identifies the MouseDown attached event.

MouseEnterEvent MouseEnterEvent MouseEnterEvent MouseEnterEvent

MouseEnter 添付イベントを識別します。Identifies the MouseEnter attached event.

MouseLeaveEvent MouseLeaveEvent MouseLeaveEvent MouseLeaveEvent

MouseLeave 添付イベントを識別します。Identifies the MouseLeave attached event.

MouseMoveEvent MouseMoveEvent MouseMoveEvent MouseMoveEvent

MouseMove 添付イベントを識別します。Identifies the MouseMove attached event.

MouseUpEvent MouseUpEvent MouseUpEvent MouseUpEvent

MouseUp 添付イベントを識別します。Identifies the MouseUp attached event.

MouseWheelDeltaForOneLine MouseWheelDeltaForOneLine MouseWheelDeltaForOneLine MouseWheelDeltaForOneLine

1 行スクロールするためにマウス ホイールが回転する単位数を表します。Represents the number of units the mouse wheel is rotated to scroll one line.

MouseWheelEvent MouseWheelEvent MouseWheelEvent MouseWheelEvent

MouseWheel 添付イベントを識別します。Identifies the MouseWheel attached event.

PreviewMouseDownEvent PreviewMouseDownEvent PreviewMouseDownEvent PreviewMouseDownEvent

PreviewMouseDown 添付イベントを識別します。Identifies the PreviewMouseDown attached event.

PreviewMouseDownOutsideCapturedElementEvent PreviewMouseDownOutsideCapturedElementEvent PreviewMouseDownOutsideCapturedElementEvent PreviewMouseDownOutsideCapturedElementEvent

PreviewMouseDownOutsideCapturedElement 添付イベントを識別します。Identifies the PreviewMouseDownOutsideCapturedElement attached event.

PreviewMouseMoveEvent PreviewMouseMoveEvent PreviewMouseMoveEvent PreviewMouseMoveEvent

PreviewMouseMove 添付イベントを識別します。Identifies the PreviewMouseMove attached event.

PreviewMouseUpEvent PreviewMouseUpEvent PreviewMouseUpEvent PreviewMouseUpEvent

PreviewMouseUp 添付イベントを識別します。Identifies the PreviewMouseUp attached event.

PreviewMouseUpOutsideCapturedElementEvent PreviewMouseUpOutsideCapturedElementEvent PreviewMouseUpOutsideCapturedElementEvent PreviewMouseUpOutsideCapturedElementEvent

PreviewMouseUpOutsideCapturedElement 添付イベントを識別します。Identifies the PreviewMouseUpOutsideCapturedElement attached event.

PreviewMouseWheelEvent PreviewMouseWheelEvent PreviewMouseWheelEvent PreviewMouseWheelEvent

PreviewMouseWheel 添付イベントを識別します。Identifies the PreviewMouseWheel attached event.

QueryCursorEvent QueryCursorEvent QueryCursorEvent QueryCursorEvent

QueryCursor 添付イベントを識別します。Identifies the QueryCursor attached event.

プロパティ

Captured Captured Captured Captured

マウスをキャプチャした要素を取得します。Gets the element that has captured the mouse.

DirectlyOver DirectlyOver DirectlyOver DirectlyOver

マウス ポインターのすぐ下にある要素を取得します。Gets the element the mouse pointer is directly over.

LeftButton LeftButton LeftButton LeftButton

マウスの左ボタンの状態を取得します。Gets the state of the left button of the mouse.

MiddleButton MiddleButton MiddleButton MiddleButton

マウスの中央ボタンの状態を取得します。Gets the state of the middle button of the mouse.

OverrideCursor OverrideCursor OverrideCursor OverrideCursor

アプリケーション全体のカーソルを取得または設定します。Gets or sets the cursor for the entire application.

PrimaryDevice PrimaryDevice PrimaryDevice PrimaryDevice

プライマリ マウス デバイスを取得します。Gets the primary mouse device.

RightButton RightButton RightButton RightButton

マウスの右ボタンの状態を取得します。Gets the state of the right button.

XButton1 XButton1 XButton1 XButton1

マウスの第 1 拡張ボタンの状態を取得します。Gets the state of the first extended button.

XButton2 XButton2 XButton2 XButton2

マウスの第 2 拡張ボタンの状態を取得します。Gets the state of the second extended button.

メソッド

AddGotMouseCaptureHandler(DependencyObject, MouseEventHandler) AddGotMouseCaptureHandler(DependencyObject, MouseEventHandler) AddGotMouseCaptureHandler(DependencyObject, MouseEventHandler) AddGotMouseCaptureHandler(DependencyObject, MouseEventHandler)

ハンドラーを追加、GotMouseCapture添付イベント。Adds a handler for the GotMouseCapture attached event.

AddLostMouseCaptureHandler(DependencyObject, MouseEventHandler) AddLostMouseCaptureHandler(DependencyObject, MouseEventHandler) AddLostMouseCaptureHandler(DependencyObject, MouseEventHandler) AddLostMouseCaptureHandler(DependencyObject, MouseEventHandler)

ハンドラーを追加、LostMouseCapture添付イベント。Adds a handler for the LostMouseCapture attached event.

AddMouseDownHandler(DependencyObject, MouseButtonEventHandler) AddMouseDownHandler(DependencyObject, MouseButtonEventHandler) AddMouseDownHandler(DependencyObject, MouseButtonEventHandler) AddMouseDownHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを追加、MouseDown添付イベント。Adds a handler for the MouseDown attached event.

AddMouseEnterHandler(DependencyObject, MouseEventHandler) AddMouseEnterHandler(DependencyObject, MouseEventHandler) AddMouseEnterHandler(DependencyObject, MouseEventHandler) AddMouseEnterHandler(DependencyObject, MouseEventHandler)

ハンドラーを追加、MouseEnter添付イベント。Adds a handler for the MouseEnter attached event.

AddMouseLeaveHandler(DependencyObject, MouseEventHandler) AddMouseLeaveHandler(DependencyObject, MouseEventHandler) AddMouseLeaveHandler(DependencyObject, MouseEventHandler) AddMouseLeaveHandler(DependencyObject, MouseEventHandler)

ハンドラーを追加、MouseLeave添付イベント。Adds a handler for the MouseLeave attached event.

AddMouseMoveHandler(DependencyObject, MouseEventHandler) AddMouseMoveHandler(DependencyObject, MouseEventHandler) AddMouseMoveHandler(DependencyObject, MouseEventHandler) AddMouseMoveHandler(DependencyObject, MouseEventHandler)

ハンドラーを追加、MouseMove添付イベント。Adds a handler for the MouseMove attached event.

AddMouseUpHandler(DependencyObject, MouseButtonEventHandler) AddMouseUpHandler(DependencyObject, MouseButtonEventHandler) AddMouseUpHandler(DependencyObject, MouseButtonEventHandler) AddMouseUpHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを追加、MouseUp添付イベント。Adds a handler for the MouseUp attached event.

AddMouseWheelHandler(DependencyObject, MouseWheelEventHandler) AddMouseWheelHandler(DependencyObject, MouseWheelEventHandler) AddMouseWheelHandler(DependencyObject, MouseWheelEventHandler) AddMouseWheelHandler(DependencyObject, MouseWheelEventHandler)

ハンドラーを追加、MouseWheel添付イベント。Adds a handler for the MouseWheel attached event.

AddPreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを追加、PreviewMouseDown添付イベント。Adds a handler for the PreviewMouseDown attached event.

AddPreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを追加、PreviewMouseDownOutsideCapturedElement添付イベント。Adds a handler for the PreviewMouseDownOutsideCapturedElement attached event.

AddPreviewMouseMoveHandler(DependencyObject, MouseEventHandler) AddPreviewMouseMoveHandler(DependencyObject, MouseEventHandler) AddPreviewMouseMoveHandler(DependencyObject, MouseEventHandler) AddPreviewMouseMoveHandler(DependencyObject, MouseEventHandler)

ハンドラーを追加、PreviewMouseMove添付イベント。Adds a handler for the PreviewMouseMove attached event.

AddPreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを追加、PreviewMouseUp添付イベント。Adds a handler for the PreviewMouseUp attached event.

AddPreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) AddPreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを追加、PreviewMouseUpOutsideCapturedElement添付イベント。Adds a handler for the PreviewMouseUpOutsideCapturedElement attached event.

AddPreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler) AddPreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler) AddPreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler) AddPreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler)

ハンドラーを追加、PreviewMouseWheel添付イベント。Adds a handler for the PreviewMouseWheel attached event.

AddQueryCursorHandler(DependencyObject, QueryCursorEventHandler) AddQueryCursorHandler(DependencyObject, QueryCursorEventHandler) AddQueryCursorHandler(DependencyObject, QueryCursorEventHandler) AddQueryCursorHandler(DependencyObject, QueryCursorEventHandler)

ハンドラーを追加、QueryCursor添付イベント。Adds a handler for the QueryCursor attached event.

Capture(IInputElement) Capture(IInputElement) Capture(IInputElement) Capture(IInputElement)

指定された要素に対するマウス入力をキャプチャします。Captures mouse input to the specified element.

Capture(IInputElement, CaptureMode) Capture(IInputElement, CaptureMode) Capture(IInputElement, CaptureMode) Capture(IInputElement, CaptureMode)

指定した CaptureMode を使用して、指定された要素に対するマウス入力をキャプチャします。Captures mouse input to the specified element using the specified CaptureMode.

GetIntermediatePoints(IInputElement, Point[]) GetIntermediatePoints(IInputElement, Point[]) GetIntermediatePoints(IInputElement, Point[]) GetIntermediatePoints(IInputElement, Point[])

最後のマウス移動イベント以後のマウス ポインターの座標を最大 64 個取得します。Retrieves up to 64 previous coordinates of the mouse pointer since the last mouse move event.

GetPosition(IInputElement) GetPosition(IInputElement) GetPosition(IInputElement) GetPosition(IInputElement)

指定した要素に相対的なマウスの位置を取得します。Gets the position of the mouse relative to a specified element.

RemoveGotMouseCaptureHandler(DependencyObject, MouseEventHandler) RemoveGotMouseCaptureHandler(DependencyObject, MouseEventHandler) RemoveGotMouseCaptureHandler(DependencyObject, MouseEventHandler) RemoveGotMouseCaptureHandler(DependencyObject, MouseEventHandler)

ハンドラーを削除、GotMouseCapture添付イベント。Removes a handler for the GotMouseCapture attached event.

RemoveLostMouseCaptureHandler(DependencyObject, MouseEventHandler) RemoveLostMouseCaptureHandler(DependencyObject, MouseEventHandler) RemoveLostMouseCaptureHandler(DependencyObject, MouseEventHandler) RemoveLostMouseCaptureHandler(DependencyObject, MouseEventHandler)

ハンドラーを削除、LostMouseCapture添付イベント。Removes a handler for the LostMouseCapture attached event.

RemoveMouseDownHandler(DependencyObject, MouseButtonEventHandler) RemoveMouseDownHandler(DependencyObject, MouseButtonEventHandler) RemoveMouseDownHandler(DependencyObject, MouseButtonEventHandler) RemoveMouseDownHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを削除、MouseDown添付イベント。Removes a handler for the MouseDown attached event.

RemoveMouseEnterHandler(DependencyObject, MouseEventHandler) RemoveMouseEnterHandler(DependencyObject, MouseEventHandler) RemoveMouseEnterHandler(DependencyObject, MouseEventHandler) RemoveMouseEnterHandler(DependencyObject, MouseEventHandler)

ハンドラーを削除、MouseEnter添付イベント。Removes a handler for the MouseEnter attached event.

RemoveMouseLeaveHandler(DependencyObject, MouseEventHandler) RemoveMouseLeaveHandler(DependencyObject, MouseEventHandler) RemoveMouseLeaveHandler(DependencyObject, MouseEventHandler) RemoveMouseLeaveHandler(DependencyObject, MouseEventHandler)

ハンドラーを削除、MouseLeave添付イベント。Removes a handler for the MouseLeave attached event.

RemoveMouseMoveHandler(DependencyObject, MouseEventHandler) RemoveMouseMoveHandler(DependencyObject, MouseEventHandler) RemoveMouseMoveHandler(DependencyObject, MouseEventHandler) RemoveMouseMoveHandler(DependencyObject, MouseEventHandler)

ハンドラーを削除、MouseMove添付イベント。Removes a handler for the MouseMove attached event.

RemoveMouseUpHandler(DependencyObject, MouseButtonEventHandler) RemoveMouseUpHandler(DependencyObject, MouseButtonEventHandler) RemoveMouseUpHandler(DependencyObject, MouseButtonEventHandler) RemoveMouseUpHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを削除、MouseUp添付イベント。Removes a handler for the MouseUp attached event.

RemoveMouseWheelHandler(DependencyObject, MouseWheelEventHandler) RemoveMouseWheelHandler(DependencyObject, MouseWheelEventHandler) RemoveMouseWheelHandler(DependencyObject, MouseWheelEventHandler) RemoveMouseWheelHandler(DependencyObject, MouseWheelEventHandler)

ハンドラーを削除、MouseWheel添付イベント。Removes a handler for the MouseWheel attached event.

RemovePreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを削除、PreviewMouseDown添付イベント。Removes a handler for the PreviewMouseDown attached event.

RemovePreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseDownOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを削除、PreviewMouseDownOutsideCapturedElement添付イベント。Removes a handler for the PreviewMouseDownOutsideCapturedElement attached event.

RemovePreviewMouseMoveHandler(DependencyObject, MouseEventHandler) RemovePreviewMouseMoveHandler(DependencyObject, MouseEventHandler) RemovePreviewMouseMoveHandler(DependencyObject, MouseEventHandler) RemovePreviewMouseMoveHandler(DependencyObject, MouseEventHandler)

ハンドラーを削除、PreviewMouseMove添付イベント。Removes a handler for the PreviewMouseMove attached event.

RemovePreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseUpHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを削除、PreviewMouseUp添付イベント。Removes a handler for the PreviewMouseUp attached event.

RemovePreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler) RemovePreviewMouseUpOutsideCapturedElementHandler(DependencyObject, MouseButtonEventHandler)

ハンドラーを削除、PreviewMouseUpOutsideCapturedElement添付イベント。Removes a handler for the PreviewMouseUpOutsideCapturedElement attached event.

RemovePreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler) RemovePreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler) RemovePreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler) RemovePreviewMouseWheelHandler(DependencyObject, MouseWheelEventHandler)

ハンドラーを削除、PreviewMouseWheel添付イベント。Removes a handler for the PreviewMouseWheel attached event.

RemoveQueryCursorHandler(DependencyObject, QueryCursorEventHandler) RemoveQueryCursorHandler(DependencyObject, QueryCursorEventHandler) RemoveQueryCursorHandler(DependencyObject, QueryCursorEventHandler) RemoveQueryCursorHandler(DependencyObject, QueryCursorEventHandler)

ハンドラーを削除、QueryCursor添付イベント。Removes a handler for the QueryCursor attached event.

SetCursor(Cursor) SetCursor(Cursor) SetCursor(Cursor) SetCursor(Cursor)

指定した Cursor にマウス ポインターを設定します。Sets the mouse pointer to the specified Cursor.

Synchronize() Synchronize() Synchronize() Synchronize()

マウスを強制的に再同期します。Forces the mouse to resynchronize.

UpdateCursor() UpdateCursor() UpdateCursor() UpdateCursor()

マウス カーソルを強制的に更新します。Forces the mouse cursor to be updated.

添付イベント

GotMouseCapture GotMouseCapture GotMouseCapture GotMouseCapture

要素がマウスをキャプチャしたときに発生します。Occurs when an element captures the mouse.

LostMouseCapture LostMouseCapture LostMouseCapture LostMouseCapture

要素がマウスのキャプチャを失ったときに発生します。Occurs when an element loses mouse capture.

MouseDown MouseDown MouseDown MouseDown

任意のマウス ボタンが押されると発生します。Occurs when any mouse button is depressed.

MouseEnter MouseEnter MouseEnter MouseEnter

マウス ポインターが要素の境界内に入ったときに発生します。Occurs when the mouse pointer enters the boundaries of an element.

MouseLeave MouseLeave MouseLeave MouseLeave

マウス ポインターが要素の境界内から出たときに発生します。Occurs when the mouse pointer leaves the boundaries of an element.

MouseMove MouseMove MouseMove MouseMove

マウス ポインターが移動すると発生します。Occurs when the mouse pointer moves.

MouseUp MouseUp MouseUp MouseUp

任意のマウス ボタンが離されると発生します。Occurs when any mouse button is released.

MouseWheel MouseWheel MouseWheel MouseWheel

マウス ホイールを回すと発生します。Occurs when the mouse wheel is rotated.

PreviewMouseDown PreviewMouseDown PreviewMouseDown PreviewMouseDown

任意のマウス ボタンが押されると発生します。Occurs when any mouse button is depressed.

PreviewMouseDownOutsideCapturedElement PreviewMouseDownOutsideCapturedElement PreviewMouseDownOutsideCapturedElement PreviewMouseDownOutsideCapturedElement

プライマリ マウス ボタンが、マウス イベントをキャプチャしている要素の外で押されたときに発生します。Occurs when the primary mouse button is pressed outside the element that is capturing mouse events.

PreviewMouseMove PreviewMouseMove PreviewMouseMove PreviewMouseMove

マウスが要素上を移動すると発生します。Occurs when the mouse moves over an element.

PreviewMouseUp PreviewMouseUp PreviewMouseUp PreviewMouseUp

任意のマウス ボタンが離されると発生します。Occurs when any mouse button is released.

PreviewMouseUpOutsideCapturedElement PreviewMouseUpOutsideCapturedElement PreviewMouseUpOutsideCapturedElement PreviewMouseUpOutsideCapturedElement

プライマリ マウス ボタンが、マウス イベントをキャプチャしている要素の外で離されたときに発生します。Occurs when the primary mouse button is released outside the element that is capturing mouse events.

PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel

マウス ホイールを回すと発生します。Occurs when the mouse wheel rotates.

QueryCursor QueryCursor QueryCursor QueryCursor

要素が現在のマウス カーソルを照会したときに発生します。Occurs when an element queries for the current mouse cursor.

適用対象