Draws an image on a System.Windows.Forms.ToolStripItem that indicates the item is in a selected state.
- e
- A System.Windows.Forms.ToolStripItemImageRenderEventArgs that contains the data to draw the selected image.
The ToolStripRenderer.DrawItemCheck(ToolStripItemImageRenderEventArgs) method provides the entry point to the rendering code for an image in a selected state. Use this method to draw a selected image when overriding the ToolStripItem.OnPaint(PaintEventArgs) method, or to force a selected image to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way a selected image is rendered, override the ToolStripRenderer.OnRenderItemCheck(ToolStripItemImageRenderEventArgs) method in a class derived from System.Windows.Forms.ToolStripRenderer.