ToolStripRenderer.DrawSeparator(ToolStripSeparatorRenderEventArgs) 方法

定义

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

参数

e
ToolStripSeparatorRenderEventArgs

一个 ToolStripSeparatorRenderEventArgs,其中包含用于绘制 ToolStripSeparator 的数据。A ToolStripSeparatorRenderEventArgs that contains the data to draw the ToolStripSeparator.

注解

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

适用于