ToolStripRenderer.DrawSeparator(ToolStripSeparatorRenderEventArgs) ToolStripRenderer.DrawSeparator(ToolStripSeparatorRenderEventArgs) ToolStripRenderer.DrawSeparator(ToolStripSeparatorRenderEventArgs) ToolStripRenderer.DrawSeparator(ToolStripSeparatorRenderEventArgs) Method

定义

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)

参数

注解

方法提供的呈现代码ToolStripSeparator的入口点。 DrawSeparatorThe DrawSeparator method provides the entry point to the rendering code for a ToolStripSeparator. 使用此方法ToolStripSeparatorToolStrip.OnPaint重写方法时绘制ToolStripSeparator , 或强制在自定义ToolStripRenderer中绘制。Use 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 , 请重写派生OnRenderSeparatorToolStripRenderer的类中的方法。To change the way the ToolStripSeparator is rendered, override the OnRenderSeparator method in a class derived from ToolStripRenderer.

适用于