ToolStripRenderer.DrawSeparator Method (ToolStripSeparatorRenderEventArgs)

 
Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void DrawSeparator(
	ToolStripSeparatorRenderEventArgs e
)

The DrawSeparator method provides the entry point to the rendering code for a ToolStripSeparator. 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. To change the way the ToolStripSeparator is rendered, override the OnRenderSeparator method in a class derived from ToolStripRenderer.

.NET Framework
Available since 2.0
Return to top
Show: