QueryContinueDragEventArgs.Action Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the status of a drag-and-drop operation.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member Action : DragAction with get, set

Property Value

Type: System.Windows.Forms.DragAction

A DragAction value.

By default, the QueryContinueDrag event sets Action to DragAction.Cancel if the ESC key was pressed and sets Action to DragAction.Drop if the left, middle, or right mouse button is pressed.

This code excerpt demonstrates using the QueryContinueDragEventArgs class with the QueryContinueDrag event. See the DoDragDrop method for the complete code example.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: