ToolStrip.OnPaintBackground(PaintEventArgs) メソッド

定義

Paint の背景の ToolStrip イベントを発生させます。

protected:
 override void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ e);
protected override void OnPaintBackground (System.Windows.Forms.PaintEventArgs e);
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overrides Sub OnPaintBackground (e As PaintEventArgs)

パラメーター

e
PaintEventArgs

描画するコントロールに関する情報を格納する PaintEventArgs

注釈

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

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

注意 (継承者)

バックグラウンドを消去する Windows 要求を処理するには、クラスを継承してこのメソッドをオーバーライドする必要があります。

適用対象