ToolStripRenderer.DrawSeparator Method (ToolStripSeparatorRenderEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: