Back to Devexpress

RepositoryItem.KeyDown Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-ca5cd0ec.md

latest4.4 KB
Original Source

RepositoryItem.KeyDown Event

Fires when a key is pressed while the editor has focus.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event KeyEventHandler KeyDown
vb
<DXCategory("Events")>
Public Event KeyDown As KeyEventHandler

Event Data

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

PropertyDescription
AltGets a value indicating whether the ALT key was pressed.
ControlGets a value indicating whether the CTRL key was pressed.
HandledGets or sets a value indicating whether the event was handled.
KeyCodeGets the keyboard code for a KeyDown or KeyUp event.
KeyDataGets the key data for a KeyDown or KeyUp event.
KeyValueGets the keyboard value for a KeyDown or KeyUp event.
ModifiersGets the modifier flags for a KeyDown or KeyUp event. The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed.
ShiftGets a value indicating whether the SHIFT key was pressed.
SuppressKeyPressGets or sets a value indicating whether the key event should be passed on to the underlying control.

Remarks

Key events occur in the following order:

  1. KeyDown
  2. RepositoryItem.KeyPress
  3. RepositoryItem.KeyUp

See Also

KeyPress

KeyUp

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace