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<EditorKeyEventArgsvalue) sealed ;
    void remove(EventHandler<EditorKeyEventArgsvalue) sealed ;
}
J#
/** event */
public final void add_KeyDown(EventHandler<EditorKeyEventArgsvalue);

/** event */
public final void remove_KeyDown(EventHandler<EditorKeyEventArgsvalue);
JScript
JScript suports the use of events, but not the declaration of new ones.

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.

PropertyDescription
AltKeyIndicates wheather the ALT key was pressed when the event occured.
CancelIf set to true, cancel the Key event.
CtrlKeyIndicates wheather the CTRL key was pressed when the event occured.
EnterKeyIndicates wheather the ENTER key was pressed when the event occured.
KeyCodeGets the ASCII value of the keyboard character pressed when the event occured
ShiftKeyIndicates wheather the SHIFT key was pressed when the event occured.

See Also