ToolStripRenderer.DrawToolStripBorder(ToolStripRenderEventArgs) 方法

定义

绘制 ToolStrip 的边框。Draws the border for a ToolStrip.

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

参数

e
ToolStripRenderEventArgs

一个 ToolStripRenderEventArgs,其中包含用于绘制 ToolStrip 的边框的数据。A ToolStripRenderEventArgs that contains the data to draw the border for the ToolStrip.

注解

DrawToolStripBorder 方法为 ToolStrip的边框提供呈现代码的入口点。The DrawToolStripBorder method provides the entry point to the rendering code for the border of a ToolStrip. 使用此方法可在重写 ToolStrip.OnPaint 方法时绘制 ToolStrip 的边框,或强制在自定义 ToolStripRenderer中绘制 ToolStrip 的边框。Use this method to draw the border of a ToolStrip when overriding the ToolStrip.OnPaint method, or to force the border of a ToolStrip to be drawn in a custom ToolStripRenderer. 若要更改 ToolStrip 的边框的呈现方式,请重写从 ToolStripRenderer派生的类中的 OnRenderToolStripBorder 方法。To change the way the border of a ToolStrip is rendered, override the OnRenderToolStripBorder method in a class derived from ToolStripRenderer.

适用于