System.Windows.Forms.ControlPaint.DrawBorder Method

Draws a border with the specified style and color, on the specified graphics surface, and within the specified bounds on a button-style control.

Syntax

public static void DrawBorder (System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds, System.Drawing.Color color, ButtonBorderStyle style)

Parameters

graphics
The System.Drawing.Graphics to draw on.
bounds
The System.Drawing.Rectangle that represents the dimensions of the border.
color
The System.Drawing.Color of the border.
style
One of the System.Windows.Forms.ButtonBorderStyle values that specifies the style of the 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