The event handler receives an argument of type ToolKeyEventArgs containing data related to this event. The following ToolKeyEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Alt (Inherited from System.Windows.Forms.KeyEventArgs) | Gets a value indicating whether the ALT key was pressed. |
Control (Inherited from System.Windows.Forms.KeyEventArgs) | Gets a value indicating whether the CTRL key was pressed. |
Handled (Inherited from System.Windows.Forms.KeyEventArgs) | Gets or sets a value indicating whether the event was handled. |
KeyCode (Inherited from System.Windows.Forms.KeyEventArgs) | Gets the keyboard code for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
KeyData (Inherited from System.Windows.Forms.KeyEventArgs) | Gets the key data for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
KeyValue (Inherited from System.Windows.Forms.KeyEventArgs) | Gets the keyboard value for a System.Windows.Forms.Control.KeyDown or System.Windows.Forms.Control.KeyUp event. |
Modifiers (Inherited from 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 (Inherited from System.Windows.Forms.KeyEventArgs) | Gets a value indicating whether the SHIFT key was pressed. |
SuppressKeyPress (Inherited from System.Windows.Forms.KeyEventArgs) | Gets or sets a value indicating whether the key event should be passed on to the underlying control. |
Tool | The tool. |
This event is generated when the user releases a key when a tool has the input focus.
The ToolKeyPressevent is generated when the user presses down and releases a key when a tool has the input focus.
The ToolKeyUpevent is generated when the user releases a key when a tool has the input focus.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2