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