ToolStripRenderer.DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) Method

定義

繪製溢位按鈕的背景。Draws the background for an overflow button.

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

參數

備註

DrawOverflowButtonBackground方法會針對溢位按鈕的背景提供呈現程式碼的進入點。The DrawOverflowButtonBackground method provides the entry point to the rendering code for the background of an overflow button. 當覆寫ToolStripItem.OnPaint方法時, 使用這個方法繪製溢位按鈕的背景, 或強制在自訂ToolStripRenderer中繪製溢位按鈕的背景。Use this method to draw the background of an overflow button when overriding the ToolStripItem.OnPaint method, or to force the background for an overflow button to be drawn in a custom ToolStripRenderer. 若要變更呈現溢位按鈕背景的方式, 請覆寫衍生OnRenderOverflowButtonBackground自之ToolStripRenderer類別中的方法。To change the way the background for an overflow button is rendered, override the OnRenderOverflowButtonBackground method in a class derived from ToolStripRenderer.

適用於