System.Windows.Forms.ToolStripRenderer.DrawToolStripBorder Method

Draws the border for a System.Windows.Forms.ToolStrip.

Syntax

public void DrawToolStripBorder (ToolStripRenderEventArgs e)

Parameters

e
A System.Windows.Forms.ToolStripRenderEventArgs that contains the data to draw the border for the System.Windows.Forms.ToolStrip.

Remarks

The ToolStripRenderer.DrawToolStripBorder(ToolStripRenderEventArgs) method provides the entry point to the rendering code for the border of a System.Windows.Forms.ToolStrip. Use this method to draw the border of a System.Windows.Forms.ToolStrip when overriding the ToolStrip.OnPaint(PaintEventArgs) method, or to force the border of a System.Windows.Forms.ToolStrip to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way the border of a System.Windows.Forms.ToolStrip is rendered, override the ToolStripRenderer.OnRenderToolStripBorder(ToolStripRenderEventArgs) method in a class derived from System.Windows.Forms.ToolStripRenderer.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0