ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Draws an image on a ToolStripItem.
public:
void DrawItemImage(System::Windows::Forms::ToolStripItemImageRenderEventArgs ^ e);
public void DrawItemImage (System.Windows.Forms.ToolStripItemImageRenderEventArgs e);
member this.DrawItemImage : System.Windows.Forms.ToolStripItemImageRenderEventArgs -> unit
Public Sub DrawItemImage (e As ToolStripItemImageRenderEventArgs)
Parameters
A ToolStripItemImageRenderEventArgs that contains the data to draw the image.
Remarks
The DrawItemImage method provides the entry point to the rendering code for an image. Use this method to draw an image when overriding the ToolStripItem.OnPaint method or to force the image to be drawn in a custom ToolStripRenderer. To change the way the image is rendered, override the OnDrawItem
method in a class derived from ToolStripRenderer.