ToolStripRenderer.DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) 方法

定义

绘制溢出按钮的背景。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)

参数

e
ToolStripItemRenderEventArgs

包含事件数据的 ToolStripItemRenderEventArgsA ToolStripItemRenderEventArgs that contains the event data.

注解

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. 若要更改溢出按钮的背景的呈现方式,请重写从 ToolStripRenderer派生的类中的 OnRenderOverflowButtonBackground 方法。To change the way the background for an overflow button is rendered, override the OnRenderOverflowButtonBackground method in a class derived from ToolStripRenderer.

适用于