IInputElement インターフェイス
定義
共通のイベントと、Windows Presentation Foundation (WPF) 要素による基本的な入力処理のためのイベント関連のプロパティおよびメソッドを設定します。Establishes the common events and also the event-related properties and methods for basic input processing by Windows Presentation Foundation (WPF) elements.
public interface class IInputElement
public interface IInputElement
type IInputElement = interface
Public Interface IInputElement
- 派生
注釈
重要
このインターフェイスは公開されていますが、アプリケーションまたはフレームワークの構築シナリオで実装するためのものではありません。Although this interface is public, it is not intended to be implemented in application or framework-building scenarios. このインターフェイスは、 WPFWPFコアをWPFWPFフレームワークに接続するための継承要件があるためパブリックです。This interface is public because of the inheritance requirements for connecting the WPFWPF core to the WPFWPF framework. FrameworkElementまた、このインターフェイスをキャスト機構として使用して、入力イベントとプロパティがまたはFrameworkContentElementから取得され、同じ入力モデルで処理できることを強制することもできます。You can also use this interface as a casting mechanism to enforce that the input events and properties will come from either a FrameworkElement or FrameworkContentElement, which can be handled in the same input model. 詳細については、「 WPF アーキテクチャ」および「基本要素の概要」も参照してください。For more information, see WPF Architecture and also see Base Elements Overview.
プロパティ
Focusable |
この要素にフォーカスを設定できるかどうかを示す値を取得または設定します。Gets or sets a value that indicates whether focus can be set to this element. |
IsEnabled |
この要素が ユーザー インターフェイス (UI)user interface (UI)で有効かどうかを示す値を取得します。Gets a value that indicates whether this element is enabled in the ユーザー インターフェイス (UI)user interface (UI). |
IsKeyboardFocused |
この要素にキーボード フォーカスがあるかどうかを示す値を取得します。Gets a value that indicates whether this element has keyboard focus. |
IsKeyboardFocusWithin |
キーボード フォーカスが子ビジュアル要素の境界内にある場合を含めて、要素の境界内にキーボード フォーカスがあるかどうかを示す値を取得します。Gets a value that indicates whether keyboard focus is anywhere inside the element bounds, including if keyboard focus is inside the bounds of any visual child elements. |
IsMouseCaptured |
この要素にマウスがキャプチャされるかどうかを示す値を取得します。Gets a value that indicates whether the mouse is captured to this element. |
IsMouseDirectlyOver |
最も厳格なヒット テストの検出でマウス ポインターがこの要素の上にあるかどうかを示す値を取得します。Gets a value that indicates whether the mouse pointer is over this element in the strictest hit testing sense. |
IsMouseOver |
マウス ポインターがこの要素 (境界内にある子ビジュアル要素を含む) の上にあるかどうかを示す値を取得します。Gets a value that indicates whether the mouse pointer is located over this element (including visual children elements that are inside its bounds). |
IsStylusCaptured |
スタイラスがこの要素にキャプチャされているかどうかを示す値を取得します。Gets a value that indicates whether the stylus is captured to this element. |
IsStylusDirectlyOver |
スタイラスが最も厳格なヒットテストの意味でこの要素より上にあるかどうかを示す値を取得します。Gets a value that indicates whether the stylus is over this element in the strictest hit testing sense. |
IsStylusOver |
スタイラスがこの要素 (または境界内にある子ビジュアル要素) の上にあるかどうかを示す値を取得します。Gets a value that indicates whether the stylus is located over this element (or over visual child elements that are inside its bounds). |
メソッド
AddHandler(RoutedEvent, Delegate) |
特定のルーティング イベントのルーティング イベント ハンドラーを要素に追加します。Adds a routed event handler for a specific routed event to an element. |
CaptureMouse() |
この要素にマウスをキャプチャするように強制することを試みます。Attempts to force capture of the mouse to this element. |
CaptureStylus() |
この要素にスタイラスをキャプチャするように強制することを試みます。Attempts to force capture of the stylus to this element. |
Focus() |
この要素にキーボード フォーカスを設定することを試みます。Attempts to focus the keyboard on this element. |
RaiseEvent(RoutedEventArgs) |
指定した RoutedEvent 内の RoutedEventArgs プロパティで指定されたルーティング イベントを発生させます。Raises the routed event that is specified by the RoutedEvent property within the provided RoutedEventArgs. |
ReleaseMouseCapture() |
この要素がマウス キャプチャを保持している場合、キャプチャを解放します。Releases the mouse capture, if this element holds the capture. |
ReleaseStylusCapture() |
この要素がスタイラス キャプチャを保持している場合、キャプチャを解放します。Releases the stylus capture, if this element holds the capture. |
RemoveHandler(RoutedEvent, Delegate) |
この要素から指定したルーティング イベント ハンドラーのすべてのインスタンスを削除します。Removes all instances of the specified routed event handler from this element. |
イベント
GotKeyboardFocus |
この要素にキーボード フォーカスが移動したときに発生します。Occurs when the keyboard is focused on this element. |
GotMouseCapture |
要素がマウスをキャプチャしたときに発生します。Occurs when the element captures the mouse. |
GotStylusCapture |
要素がスタイラスをキャプチャしたときに発生します。Occurs when the element captures the stylus. |
KeyDown |
この要素にキーボード フォーカスがある状態でいずれかのキーが押されたときに発生します。Occurs when a key is pressed while the keyboard is focused on this element. |
KeyUp |
この要素にキーボード フォーカスがある状態でキーが離されたときに発生します。Occurs when a key is released while the keyboard is focused on this element. |
LostKeyboardFocus |
この要素からキーボード フォーカスが離れたときに発生します。Occurs when the keyboard is no longer focused on this element. |
LostMouseCapture |
この要素がマウス キャプチャを失ったときに発生します。Occurs when this element loses mouse capture. |
LostStylusCapture |
この要素がスタイラス キャプチャを失ったときに発生します。Occurs when this element loses stylus capture. |
MouseEnter |
マウス ポインターがこの要素の境界内に入ったときに発生します。Occurs when the mouse pointer enters the bounds of this element. |
MouseLeave |
マウス ポインターがこの要素の境界内から出たときに発生します。Occurs when the mouse pointer leaves the bounds of this element. |
MouseLeftButtonDown |
要素の上にマウス ポインターがある状態でマウスの左ボタンが押されたときに発生します。Occurs when the left mouse button is pressed while the mouse pointer is over the element. |
MouseLeftButtonUp |
要素の上にマウス ポインターがある状態でマウスの左ボタンが離されたときに発生します。Occurs when the left mouse button is released while the mouse pointer is over the element. |
MouseMove |
要素の上にマウス ポインターがある状態でマウス ポインターが動かされたときに発生します。Occurs when the mouse pointer moves while the mouse pointer is over the element. |
MouseRightButtonDown |
要素の上にマウス ポインターがある状態でマウスの右ボタンが押されたときに発生します。Occurs when the right mouse button is pressed while the mouse pointer is over the element. |
MouseRightButtonUp |
要素の上にマウス ポインターがある状態でマウスの右ボタンが離されたときに発生します。Occurs when the right mouse button is released while the mouse pointer is over the element. |
MouseWheel |
マウス ポインターがこの要素上にあるときにマウス ホイールが動くと発生します。Occurs when the mouse wheel moves while the mouse pointer is over this element. |
PreviewGotKeyboardFocus |
この要素にキーボード フォーカスが移動したときに発生します。Occurs when the keyboard is focused on this element. |
PreviewKeyDown |
この要素にキーボード フォーカスがある状態でいずれかのキーが押されたときに発生します。Occurs when a key is pressed while the keyboard is focused on this element. |
PreviewKeyUp |
この要素にキーボード フォーカスがある状態でキーが離されたときに発生します。Occurs when a key is released while the keyboard is focused on this element. |
PreviewLostKeyboardFocus |
この要素からキーボード フォーカスが離れたときに発生します。Occurs when the keyboard is no longer focused on this element. |
PreviewMouseLeftButtonDown |
要素の上にマウス ポインターがある状態でマウスの左ボタンが押されたときに発生します。Occurs when the left mouse button is pressed while the mouse pointer is over the element. |
PreviewMouseLeftButtonUp |
要素の上にマウス ポインターがある状態でマウスの左ボタンが離されたときに発生します。Occurs when the left mouse button is released while the mouse pointer is over the element. |
PreviewMouseMove |
要素の上にマウス ポインターがある状態でマウス ポインターが動かされたときに発生します。Occurs when the mouse pointer moves while the mouse pointer is over the element. |
PreviewMouseRightButtonDown |
要素の上にマウス ポインターがある状態でマウスの右ボタンが押されたときに発生します。Occurs when the right mouse button is pressed while the mouse pointer is over the element. |
PreviewMouseRightButtonUp |
要素の上にマウス ポインターがある状態でマウスの右ボタンが離されたときに発生します。Occurs when the right mouse button is released while the mouse pointer is over the element. |
PreviewMouseWheel |
マウス ポインターがこの要素上にあるときにマウス ホイールが動くと発生します。Occurs when the mouse wheel moves while the mouse pointer is over this element. |
PreviewStylusButtonDown |
スタイラスがこの要素上にあるときにスタイラス ボタンが押されると発生します。Occurs when the stylus button is pressed down while the stylus is over this element. |
PreviewStylusButtonUp |
スタイラスがこの要素上にあるときにスタイラス ボタンが離されると発生します。Occurs when the stylus button is released while the stylus is over this element. |
PreviewStylusDown |
この要素上でスタイラスがデジタイザーに触れると発生します。Occurs when the stylus touches the digitizer while over this element. |
PreviewStylusInAirMove |
スタイラスがデジタイザーに触れることなく要素上を移動すると発生します。Occurs when the stylus moves over an element, but without touching the digitizer. |
PreviewStylusInRange |
スタイラスが検出されるのに十分にデジタイザーに近づいているときに発生します。Occurs when the stylus is close enough to the digitizer to be detected. |
PreviewStylusMove |
要素の上にスタイラスがある状態でスタイラスを動かしたときに発生します。Occurs when the stylus moves while the stylus is over the element. |
PreviewStylusOutOfRange |
スタイラスがデジタイザーから離れすぎているために検出されないときに発生します。Occurs when the stylus is too far from the digitizer to be detected. |
PreviewStylusSystemGesture |
いずれかのスタイラス ジェスチャ (Tap や Drag など) が検出されると発生します。Occurs when one of several stylus gestures are detected, for example, Tap or Drag. |
PreviewStylusUp |
この要素上でスタイラスがデジタイザーから離れたときに発生します。Occurs when the stylus is raised off the digitizer while over this element. |
PreviewTextInput |
この要素がデバイスに依存しない方法でテキストを取得したときに発生します。Occurs when this element gets text in a device-independent manner. |
StylusButtonDown |
スタイラスがこの要素上にあるときにスタイラス ボタンが押されると発生します。Occurs when the stylus button is pressed while the stylus is over this element. |
StylusButtonUp |
スタイラスがこの要素上にあるときにスタイラス ボタンが離されると発生します。Occurs when the stylus button is released while the stylus is over this element. |
StylusDown |
この要素上でスタイラスがデジタイザーに触れると発生します。Occurs when the stylus touches the digitizer while over this element. |
StylusEnter |
スタイラスのカーソルが要素の境界内に入ったときに発生します。Occurs when the stylus cursor enters the bounds of the element. |
StylusInAirMove |
スタイラスがデジタイザーに触れることなく要素上を移動すると発生します。Occurs when the stylus moves over an element, but without touching the digitizer. |
StylusInRange |
スタイラスが検出されるのに十分にデジタイザーに近づいているときに発生します。Occurs when the stylus is close enough to the digitizer to be detected. |
StylusLeave |
スタイラスのカーソルが要素の境界内から出たときに発生します。Occurs when the stylus cursor leaves the bounds of the element. |
StylusMove |
要素上でスタイラスのカーソルを動かしたときに発生します。Occurs when the stylus cursor moves over the element. |
StylusOutOfRange |
スタイラスがデジタイザーから離れすぎているために検出されないときに発生します。Occurs when the stylus is too far from the digitizer to be detected. |
StylusSystemGesture |
いずれかのスタイラス ジェスチャ (Tap や Drag など) が検出されると発生します。Occurs when one of several stylus gestures are detected, for example, Tap or Drag. |
StylusUp |
この要素上でスタイラスがデジタイザーから離れたときに発生します。Occurs when the stylus is raised off the digitizer while over this element. |
TextInput |
この要素がデバイスに依存しない方法でテキストを取得したときに発生します。Occurs when this element gets text in a device-independent manner. |