System.Windows.Forms.ControlPaint.DrawBorder Method

Draws a border on a button-style control with the specified styles, colors, and border widths; on the specified graphics surface; and within the specified bounds.

Syntax

public static void DrawBorder (System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds, System.Drawing.Color leftColor, int leftWidth, ButtonBorderStyle leftStyle, System.Drawing.Color topColor, int topWidth, ButtonBorderStyle topStyle, System.Drawing.Color rightColor, int rightWidth, ButtonBorderStyle rightStyle, System.Drawing.Color bottomColor, int bottomWidth, ButtonBorderStyle bottomStyle)

Parameters

graphics
The System.Drawing.Graphics to draw on.
bounds
The System.Drawing.Rectangle that represents the dimensions of the border.
leftColor
The System.Drawing.Color of the left of the border.
leftWidth
The width of the left border.
leftStyle
One of the System.Windows.Forms.ButtonBorderStyle values that specifies the style of the left border.
topColor
The System.Drawing.Color of the top of the border.
topWidth
The width of the top border.
topStyle
One of the System.Windows.Forms.ButtonBorderStyle values that specifies the style of the top border.
rightColor
The System.Drawing.Color of the right of the border.
rightWidth
The width of the right border.
rightStyle
One of the System.Windows.Forms.ButtonBorderStyle values that specifies the style of the right border.
bottomColor
The System.Drawing.Color of the bottom of the border.
bottomWidth
The width of the bottom border.
bottomStyle
One of the System.Windows.Forms.ButtonBorderStyle values that specifies the style of the bottom border.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0