イベント ハンドラが、このイベントに関連するデータを含む、ToolKeyEventArgs 型の引数を受け取りました。次の ToolKeyEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Alt System.Windows.Forms.KeyEventArgsから継承されます。 | Gets a value indicating whether the ALT key was pressed. |
Control System.Windows.Forms.KeyEventArgsから継承されます。 | Gets a value indicating whether the CTRL key was pressed. |
Handled System.Windows.Forms.KeyEventArgsから継承されます。 | Gets or sets a value indicating whether the event was handled. |
KeyCode System.Windows.Forms.KeyEventArgsから継承されます。 | Gets the keyboard code for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
KeyData System.Windows.Forms.KeyEventArgsから継承されます。 | Gets the key data for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
KeyValue System.Windows.Forms.KeyEventArgsから継承されます。 | Gets the keyboard value for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
Modifiers System.Windows.Forms.KeyEventArgsから継承されます。 | Gets the modifier flags for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed. |
Shift System.Windows.Forms.KeyEventArgsから継承されます。 | Gets a value indicating whether the SHIFT key was pressed. |
SuppressKeyPress System.Windows.Forms.KeyEventArgsから継承されます。 | Gets or sets a value indicating whether the key event should be passed on to the underlying control. |
Tool | ツール |
このイベントは、ツールに入力フォーカスがあるときにユーザーがキーを押すと生成されます。
ツールに入力フォーカスがあるときにユーザーがキーを押して離すと、ToolKeyPress イベントが生成されます。
ToolKeyUp イベントは、ツールに入力フォーカスがあるときにユーザーがキーを離すと生成されます。