Back to Devexpress

ComponentEditorContainer.EditorKeyPress Event

windowsforms-devexpress-dot-xtraeditors-dot-container-dot-componenteditorcontainer-327da41d.md

latest3.0 KB
Original Source

ComponentEditorContainer.EditorKeyPress Event

Occurs when a character key is pressed within an in-place editor that belongs to the container component.

Namespace : DevExpress.XtraEditors.Container

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("ContainerEvents")]
public event KeyPressEventHandler EditorKeyPress
vb
<DXCategory("ContainerEvents")>
Public Event EditorKeyPress As KeyPressEventHandler

Event Data

The EditorKeyPress event's data class is KeyPressEventArgs. The following properties provide information specific to this event:

PropertyDescription
HandledGets or sets a value indicating whether the KeyPress event was handled.
KeyCharGets or sets the character corresponding to the key pressed.

Remarks

Unlike the ComponentEditorContainer.EditorKeyDown event, the EditorKeyPress event is only raised in response to pressing a character key. Note that pressing a character key raises both the ComponentEditorContainer.EditorKeyDown and EditorKeyPress events. If you continue to depress the key, the events will be triggered repeatedly with a short interval

After a key is released, the ComponentEditorContainer.EditorKeyUp event is fired.

Key press events are fired in the following order:

See Also

ComponentEditorContainer Class

ComponentEditorContainer Members

DevExpress.XtraEditors.Container Namespace