Draws the background for a System.Windows.Forms.ToolStripLabel.
- e
- A System.Windows.Forms.ToolStripItemRenderEventArgs that contains the data to draw the background for the label.
The ToolStripRenderer.DrawLabelBackground(ToolStripItemRenderEventArgs) method provides the entry point to the rendering code for the background of a System.Windows.Forms.ToolStripLabel. Use this method to draw the background of a System.Windows.Forms.ToolStripLabel when overriding the ToolStripLabel.OnPaint(PaintEventArgs) method, or to force the background of a System.Windows.Forms.ToolStripLabel to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way the background of a System.Windows.Forms.ToolStripLabel is rendered, override the ToolStripRenderer.OnRenderLabelBackground(ToolStripItemRenderEventArgs) method in a class derived from System.Windows.Forms.ToolStripRenderer.