WorkflowDesignerMessageFilter.OnQueryContinueDrag Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs during a drag operation.
protected:
virtual bool OnQueryContinueDrag(System::Windows::Forms::QueryContinueDragEventArgs ^ eventArgs);
protected virtual bool OnQueryContinueDrag (System.Windows.Forms.QueryContinueDragEventArgs eventArgs);
abstract member OnQueryContinueDrag : System.Windows.Forms.QueryContinueDragEventArgs -> bool
override this.OnQueryContinueDrag : System.Windows.Forms.QueryContinueDragEventArgs -> bool
Protected Overridable Function OnQueryContinueDrag (eventArgs As QueryContinueDragEventArgs) As Boolean
Parameters
- eventArgs
- QueryContinueDragEventArgs
A QueryContinueDragEventArgs that contains information about the event.
Returns
true
if the message is handled; otherwise, false
.
Examples
The following code example shows how to override the OnQueryContinueDrag method so that it always returns true
.
This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. For more information, see Basic Designer Hosting.
protected override bool OnQueryContinueDrag(QueryContinueDragEventArgs qcdevent)
{
return true;
}
Protected Overrides Function OnQueryContinueDrag(ByVal qcdevent As QueryContinueDragEventArgs) As Boolean
Return True
End Function
Remarks
OnQueryContinueDrag
occurs during a drag operation. The OnQueryContinueDrag
event allows the drag source to determine whether the drag operation should be canceled.