Redigeeri

Jagamisviis:


ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) Method

Definition

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

e
ToolStripItemImageRenderEventArgs

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.

Applies to