Occurs when a key is first pressed.
Namespace: SpiceLogic.WinHTMLEditor
Assembly: WinHTMLEditorControl (in WinHTMLEditorControl.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Event KeyDown As EventHandler(Of EditorKeyEventArgs) |
| C# |
|---|
| public event EventHandler<EditorKeyEventArgs> KeyDown |
| C++ |
|---|
| public: virtual event EventHandler<EditorKeyEventArgs> KeyDown { void add(EventHandler<EditorKeyEventArgs> value) sealed ; void remove(EventHandler<EditorKeyEventArgs> value) sealed ; } |
| J# |
|---|
| /** event */ public final void add_KeyDown(EventHandler<EditorKeyEventArgs> value); /** event */ public final void remove_KeyDown(EventHandler<EditorKeyEventArgs> value); |
| JScript |
|---|
Event Data
The event handler receives an argument of type EditorKeyEventArgs containing data related to this event. The following EditorKeyEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| AltKey | Indicates wheather the ALT key was pressed when the event occured. |
| Cancel | If set to true, cancel the Key event. |
| CtrlKey | Indicates wheather the CTRL key was pressed when the event occured. |
| EnterKey | Indicates wheather the ENTER key was pressed when the event occured. |
| KeyCode | Gets the ASCII value of the keyboard character pressed when the event occured |
| ShiftKey | Indicates wheather the SHIFT key was pressed when the event occured. |