共用方式為


Behavior.OnGiveFeedback(Glyph, GiveFeedbackEventArgs) 方法

定義

允許自訂的拖放回應行為。

public:
 virtual void OnGiveFeedback(System::Windows::Forms::Design::Behavior::Glyph ^ g, System::Windows::Forms::GiveFeedbackEventArgs ^ e);
public virtual void OnGiveFeedback (System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.GiveFeedbackEventArgs e);
public virtual void OnGiveFeedback (System.Windows.Forms.Design.Behavior.Glyph? g, System.Windows.Forms.GiveFeedbackEventArgs e);
abstract member OnGiveFeedback : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.GiveFeedbackEventArgs -> unit
override this.OnGiveFeedback : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.GiveFeedbackEventArgs -> unit
Public Overridable Sub OnGiveFeedback (g As Glyph, e As GiveFeedbackEventArgs)

參數

g
Glyph

Glyph,會在其上叫用拖放行為。

e
GiveFeedbackEventArgs

GiveFeedbackEventArgs,其中包含事件資料。

給繼承者的注意事項

您可以覆寫 OnGiveFeedback(Glyph, GiveFeedbackEventArgs) 方法,讓 Behavior 可以指定自己的拖放規則。

適用於

另請參閱