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