DragDropKeyStates Enumeration

Specifies the current state of the modifier keys (SHIFT, CTRL, and ALT), as well as the state of the mouse buttons.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

<FlagsAttribute> _
Public Enumeration DragDropKeyStates
Dim instance As DragDropKeyStates

/** @attribute FlagsAttribute() */ 
public enum DragDropKeyStates
public enum DragDropKeyStates
<object property="EnumerationValue" .../>

 Member nameDescription
AltKeyThe ALT key is pressed. 
ControlKeyThe control (CTRL) key is pressed. 
LeftMouseButtonThe left mouse button is pressed. 
MiddleMouseButtonThe middle mouse button is pressed. 
NoneNo modifier keys or mouse buttons are pressed. 
RightMouseButtonThe right mouse button is pressed. 
ShiftKeyThe shift (SHIFT) key is pressed. 

No distinction is made between the left or right SHIFT, ALT, and CTRL keys.

This enumeration is used by the DragEventArgs and QueryContinueDragEventArgs classes.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions