WorkflowDesignerMessageFilter.OnGiveFeedback(GiveFeedbackEventArgs) Método
Definição
Ocorre durante uma operação de arrastar.Occurs during a drag operation.
protected:
virtual bool OnGiveFeedback(System::Windows::Forms::GiveFeedbackEventArgs ^ eventArgs);
protected virtual bool OnGiveFeedback (System.Windows.Forms.GiveFeedbackEventArgs eventArgs);
abstract member OnGiveFeedback : System.Windows.Forms.GiveFeedbackEventArgs -> bool
override this.OnGiveFeedback : System.Windows.Forms.GiveFeedbackEventArgs -> bool
Protected Overridable Function OnGiveFeedback (eventArgs As GiveFeedbackEventArgs) As Boolean
Parâmetros
- eventArgs
- GiveFeedbackEventArgs
Um GiveFeedbackEventArgs que contém informações sobre o evento.A GiveFeedbackEventArgs 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 OnGiveFeedback método para que ele sempre retorne true .The following code example shows how to override the OnGiveFeedback 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 OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
{
return true;
}
Protected Overrides Function OnGiveFeedback(ByVal gfbevent As GiveFeedbackEventArgs) As Boolean
Return True
End Function
Comentários
OnGiveFeedback ocorre quando uma operação de arrastar é iniciada.OnGiveFeedback occurs when a drag operation is started. OnGiveFeedback permite que a origem de uma operação de arrastar modifique a aparência do ponteiro do mouse para fornecer comentários visuais durante uma operação de arrastar.OnGiveFeedback allows the source of a drag operation to modify the appearance of the mouse pointer to give you visual feedback during a drag operation.