DataGridView.OnBackgroundColorChanged(EventArgs) メソッド

定義

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

protected:
 virtual void OnBackgroundColorChanged(EventArgs ^ e);
protected virtual void OnBackgroundColorChanged (EventArgs e);
abstract member OnBackgroundColorChanged : EventArgs -> unit
override this.OnBackgroundColorChanged : EventArgs -> unit
Protected Overridable Sub OnBackgroundColorChanged (e As EventArgs)

パラメーター

e
EventArgs

イベント データを格納している EventArgs

注釈

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

OnBackgroundColorChanged メソッドを使用すると、デリゲートを結び付けずに、派生クラスでイベントを処理することもできます。 派生クラスでイベントを処理する場合は、この手法をお勧めします。

注意 (継承者)

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

適用対象

こちらもご覧ください