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.

備註

方法會提供的背景ToolStripDropDownButton呈現程式碼的進入點。 DrawDropDownButtonBackgroundThe DrawDropDownButtonBackground method provides the entry point to the rendering code for the background of a ToolStripDropDownButton. 在覆寫ToolStripDropDownButton.OnPaint方法時, 使用這個方法繪製下拉按鈕的背景, 或強制在自訂ToolStripRenderer中繪製下拉式按鈕的背景。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. 若要變更背景的呈現方式, 請覆寫OnRenderDropDownButtonBackground衍生自之ToolStripRenderer類別中的方法。To change the way the background is rendered, override the OnRenderDropDownButtonBackground method in a class derived from ToolStripRenderer.

適用於