WorkflowDesignerMessageFilter.OnQueryContinueDrag(QueryContinueDragEventArgs) Método
Definição
Ocorre durante uma operação de arrastar.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
Parâmetros
- eventArgs
- QueryContinueDragEventArgs
Um QueryContinueDragEventArgs que contém informações sobre o evento.A QueryContinueDragEventArgs that contains information about the event.
Retornos
true se a mensagem for manipulada, caso contrário, false.true if the message is handled; otherwise, false.
Exemplos
O exemplo de código a seguir mostra como substituir o OnQueryContinueDrag método para que ele sempre retorne true .The following code example shows how to override the OnQueryContinueDrag method so that it always returns true.
Este exemplo de código faz parte do exemplo do SDK de hospedagem do designer básico do arquivo DesignerShell. cs.This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. Para obter mais informações, consulte Basic Designer Hosting.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
Comentários
OnQueryContinueDrag ocorre durante uma operação de arrastar.OnQueryContinueDrag occurs during a drag operation. O OnQueryContinueDrag evento permite que a origem de arrastar determine se a operação de arrastar deve ser cancelada.The OnQueryContinueDrag event allows the drag source to determine whether the drag operation should be canceled.