System.Windows.Forms.ToolStripRenderer.DrawItemImage Method

Draws an image on a System.Windows.Forms.ToolStripItem.

Syntax

public void DrawItemImage (ToolStripItemImageRenderEventArgs e)

Parameters

e
A System.Windows.Forms.ToolStripItemImageRenderEventArgs that contains the data to draw the image.

Remarks

The ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) method provides the entry point to the rendering code for an image. Use this method to draw an image when overriding the ToolStripItem.OnPaint(PaintEventArgs) method or to force the image to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way the image is rendered, override the OnDrawItem method in a class derived from System.Windows.Forms.ToolStripRenderer.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0