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请求。

适用于