ToolStripRenderer.DrawToolStripBorder Method (ToolStripRenderEventArgs)

 

Draws the border for a ToolStrip.

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

public void DrawToolStripBorder(
	ToolStripRenderEventArgs e
)

Parameters

e
Type: System.Windows.Forms.ToolStripRenderEventArgs

A ToolStripRenderEventArgs that contains the data to draw the border for the ToolStrip.

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

.NET Framework
Available since 2.0
Return to top
Show: