Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXDragEventArgs.KeyState Property

Gets the pressed mouse buttons (left, middle, right) and modifier keys (Shift, Ctrl, Alt).

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public DragDropKeyState KeyState { get; }

#Property Value

Type Description
DragDropKeyState

A DragDropKeyState enumeration value that specifies the pressed mouse buttons and modifier keys.

Available values:

Name Description
None

No keyboard keys or mouse buttons are pressed.

LMouseButton

The left mouse button is pressed.

RMouseButton

The right mouse button is pressed.

Shift

The Shift key is pressed.

Control

The Ctrl key is pressed.

MMouseButton

The middle mouse button is pressed.

Alt

The Alt key is pressed.

See Also