ToolStripRenderer.DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) Method

定义

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

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

参数

e
ToolStripItemRenderEventArgs ToolStripItemRenderEventArgs ToolStripItemRenderEventArgs ToolStripItemRenderEventArgs

一个 ToolStripItemRenderEventArgs,其中包含用于绘制下拉按钮背景的数据。A ToolStripItemRenderEventArgs that contains the data to draw the drop-down button's background.

注解

@No__t-0 方法提供 @no__t 的背景的呈现代码的入口点。The DrawDropDownButtonBackground method provides the entry point to the rendering code for the background of a ToolStripDropDownButton. 使用此方法可在重写 @no__t 0 方法时绘制下拉按钮的背景,或强制在自定义 @no__t 中绘制下拉按钮的背景。Use this method to draw the background of a drop-down button when overriding the ToolStripDropDownButton.OnPaint method, or to force the background of a drop-down button to be drawn in a custom ToolStripRenderer. 若要更改背景的呈现方式,请重写从 @no__t 派生的类中的 @no__t 0 方法。To change the way the background is rendered, override the OnRenderDropDownButtonBackground method in a class derived from ToolStripRenderer.

适用于