Back to Devexpress

IKeyboardHandlerService.OnKeyPress(PortableKeyPressEventArgs) Method

corelibraries-devexpress-dot-services-dot-ikeyboardhandlerservice-dot-onkeypress-x28-devexpress-dot-portable-dot-input-dot-portablekeypresseventargs-x29.md

latest1.6 KB
Original Source

IKeyboardHandlerService.OnKeyPress(PortableKeyPressEventArgs) Method

Override this method in a descending class to handle the KeyPress event.

Namespace : DevExpress.Services

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
void OnKeyPress(
    PortableKeyPressEventArgs e
)
vb
Sub OnKeyPress(
    e As PortableKeyPressEventArgs
)

Parameters

NameTypeDescription
eDevExpress.Portable.Input.PortableKeyPressEventArgs

This class is equivalent to System.Windows.Forms.KeyPressEventArgs and specifies the ASCII character that corresponds to the key a user pressed.

|

Remarks

Create a KeyboardHandlerServiceWrapper class descendant to handle keyboard events.

See Also

IKeyboardHandlerService Interface

IKeyboardHandlerService Members

DevExpress.Services Namespace