.NET Windows Forms in a Nutshell

QueryContinueDragEventArgs

System. Windows .Forms (system. windows .forms.dll) class

This class encapsulates the data for the Control.QueryContinueDrag event.

The Control raises this event periodically throughout a drag-and-drop operation initiated by Control.DoDragDrop() .

If you bind to it, you can use this object to set the expected Action , perhaps forcing the operation to Continue or Cancel .

EscapePressed and KeyState provide information as to whether the user pressed the Esc key, and which other modifier keys ( CTRL , SHIFT , ALT ) were depressed at the time.

public class QueryContinueDragEventArgs : EventArgs { // Public Constructors public QueryContinueDragEventArgs (int keyState , bool escapePressed , DragAction action ); // Public Instance Properties public DragAction Action {set; get; } public bool EscapePressed {get; } public int KeyState {get; } }

Hierarchy

System.Object System.EventArgs QueryContinueDragEventArgs

Passed To

Control.OnQueryContinueDrag() , QueryContinueDragEventHandler.{BeginInvoke() , Invoke()}

Категории