ToolStripRenderer.DrawImageMargin(ToolStripRenderEventArgs) ToolStripRenderer.DrawImageMargin(ToolStripRenderEventArgs) ToolStripRenderer.DrawImageMargin(ToolStripRenderEventArgs) ToolStripRenderer.DrawImageMargin(ToolStripRenderEventArgs) Method

定義

ToolStrip 上繪製影像周圍的空間。Draws the space around an image on a ToolStrip.

public:
 void DrawImageMargin(System::Windows::Forms::ToolStripRenderEventArgs ^ e);
public void DrawImageMargin (System.Windows.Forms.ToolStripRenderEventArgs e);
member this.DrawImageMargin : System.Windows.Forms.ToolStripRenderEventArgs -> unit
Public Sub DrawImageMargin (e As ToolStripRenderEventArgs)

參數

e
ToolStripRenderEventArgs ToolStripRenderEventArgs ToolStripRenderEventArgs ToolStripRenderEventArgs

ToolStripRenderEventArgs,其中包含要繪製影像周圍空間的資料。A ToolStripRenderEventArgs that contains the data to draw the space around the image.

備註

DrawImageMargin方法會提供影像呈現程式碼的進入點。The DrawImageMargin method provides the entry point to the rendering code for the image. 覆寫ToolStripItem.OnPaint方法時, 使用這個方法來繪製影像邊界, 或強制在自訂ToolStripRenderer中繪製影像邊界。Use this method to draw the image margin when overriding the ToolStripItem.OnPaint method, or to force the image margin to be drawn in a custom ToolStripRenderer. 若要變更呈現影像邊界的方式, 請覆寫OnRenderImageMargin衍生自之ToolStripRenderer類別中的方法。To change the way the image margin is rendered, override the OnRenderImageMargin method in a class derived from ToolStripRenderer.

適用於