ToolStripItem.OnGiveFeedback(GiveFeedbackEventArgs) メソッド

定義

GiveFeedback イベントを発生させます。

protected:
 virtual void OnGiveFeedback(System::Windows::Forms::GiveFeedbackEventArgs ^ giveFeedbackEvent);
protected virtual void OnGiveFeedback(System.Windows.Forms.GiveFeedbackEventArgs giveFeedbackEvent);
abstract member OnGiveFeedback : System.Windows.Forms.GiveFeedbackEventArgs -> unit
override this.OnGiveFeedback : System.Windows.Forms.GiveFeedbackEventArgs -> unit
Protected Overridable Sub OnGiveFeedback (giveFeedbackEvent As GiveFeedbackEventArgs)

パラメーター

giveFeedbackEvent
GiveFeedbackEventArgs

イベント データを含む GiveFeedbackEventArgs

注釈

イベントを発生させると、デリゲートを介してイベント ハンドラーが呼び出されます。 詳細については、「イベントの 処理と発生」を参照してください。

OnGiveFeedback メソッドでは、デリゲートをアタッチせずに、派生クラスでイベントを処理することもできます。 これは、派生クラスでイベントを処理するために推奨される手法です。

注意 (継承者)

派生クラスで OnGiveFeedback(GiveFeedbackEventArgs) をオーバーライドする場合は、登録されているデリゲートがイベントを受け取るように、基底クラスの OnGiveFeedback(GiveFeedbackEventArgs) メソッドを必ず呼び出してください。

適用対象