ToolStripRenderer.DrawLabelBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawLabelBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawLabelBackground(ToolStripItemRenderEventArgs) ToolStripRenderer.DrawLabelBackground(ToolStripItemRenderEventArgs) Method

定義

繪製 ToolStripLabel 的背景。Draws the background for a ToolStripLabel.

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

參數

e
ToolStripItemRenderEventArgs ToolStripItemRenderEventArgs ToolStripItemRenderEventArgs ToolStripItemRenderEventArgs

ToolStripItemRenderEventArgs,其中包含要繪製標籤背景的資料。A ToolStripItemRenderEventArgs that contains the data to draw the background for the label.

備註

@No__t-0 方法會為 @no__t 的背景提供呈現程式碼的進入點。The DrawLabelBackground method provides the entry point to the rendering code for the background of a ToolStripLabel. 在覆寫 ToolStripLabel.OnPaint 方法時,使用這個方法繪製 @no__t 的背景,或強制在自訂 @no__t 中繪製 ToolStripLabel 的背景。Use this method to draw the background of a ToolStripLabel when overriding the ToolStripLabel.OnPaint method, or to force the background of a ToolStripLabel to be drawn in a custom ToolStripRenderer. 若要變更轉譯 ToolStripLabel 背景的方式,請覆寫衍生自 ToolStripRenderer 之類別中的 OnRenderLabelBackground 方法。To change the way the background of a ToolStripLabel is rendered, override the OnRenderLabelBackground method in a class derived from ToolStripRenderer.

適用於