ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) Method

定義

ToolStripItem 上繪製影像。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)

參數

備註

DrawItemImage方法會提供影像之轉譯程式碼的進入點。The DrawItemImage method provides the entry point to the rendering code for an image. 當覆寫ToolStripItem.OnPaint方法或強制在自訂ToolStripRenderer中繪製影像時, 請使用這個方法來繪製影像。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. 若要變更影像的呈現方式, 請覆寫OnDrawItem衍生自之ToolStripRenderer類別中的方法。To change the way the image is rendered, override the OnDrawItem method in a class derived from ToolStripRenderer.

適用於