ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs) 方法

定義

繪製 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,其中包含要繪製 ToolStrip 背景的資料。A ToolStripRenderEventArgs that contains the data to draw the background for the ToolStrip.

備註

@No__t-0 方法會為 @no__t 的背景提供呈現程式碼的進入點。The DrawToolStripBackground method provides the entry point to the rendering code for the background of a ToolStrip. 在覆寫 ToolStrip.OnPaintBackground 方法時,使用這個方法繪製 @no__t 的背景,或強制在自訂 @no__t 中繪製 ToolStrip 的背景。Use 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 背景的方式,請覆寫衍生自 ToolStripRenderer 之類別中的 OnRenderToolStripBackground 方法。To change the way the background of a ToolStrip is rendered, override the OnRenderToolStripBackground method in a class derived from ToolStripRenderer.

適用於