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.

注解

@No__t-0 方法提供图像的呈现代码的入口点。The DrawImageMargin method provides the entry point to the rendering code for the image. 重写 @no__t 0 方法时,使用此方法绘制图像边距,或强制在自定义 @no__t 中绘制图像边距。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. 若要更改图像边距的呈现方式,请重写从 @no__t 派生的类中的 @no__t 0 方法。To change the way the image margin is rendered, override the OnRenderImageMargin method in a class derived from ToolStripRenderer.

适用于