ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs) ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs) ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs) ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs) Method

定义

绘制 ToolStrip 的背景。Draws the background for a ToolStrip.

public:
 void DrawToolStripBackground(System::Windows::Forms::ToolStripRenderEventArgs ^ e);
public void DrawToolStripBackground (System.Windows.Forms.ToolStripRenderEventArgs e);
member this.DrawToolStripBackground : System.Windows.Forms.ToolStripRenderEventArgs -> unit
Public Sub DrawToolStripBackground (e As ToolStripRenderEventArgs)

参数

e
ToolStripRenderEventArgs ToolStripRenderEventArgs ToolStripRenderEventArgs ToolStripRenderEventArgs

一个 ToolStripRenderEventArgs,其中包含用于绘制 ToolStrip 背景的数据。A ToolStripRenderEventArgs that contains the data to draw the background for the ToolStrip.

注解

方法为的背景ToolStrip提供呈现代码的入口点。 DrawToolStripBackgroundThe DrawToolStripBackground method provides the entry point to the rendering code for the background of a ToolStrip. 当重写ToolStrip ToolStripRenderer方法时, 使用此方法绘制的背景, 或强制在自定义中绘制的背景。 ToolStrip.OnPaintBackground ToolStripUse this method to draw the background of a ToolStrip when overriding the ToolStrip.OnPaintBackground method, or to force the background of a ToolStrip to be drawn in a custom ToolStripRenderer. 若要更改的背景ToolStrip呈现方式, 请重写派生自OnRenderToolStripBackground ToolStripRenderer的类中的方法。To change the way the background of a ToolStrip is rendered, override the OnRenderToolStripBackground method in a class derived from ToolStripRenderer.

适用于