System.Windows.Forms.ControlPaint.DrawBorder3D Method

Draws a three-dimensional style border on the specified graphics surface and within the specified bounds on a control.

Syntax

public static void DrawBorder3D (System.Drawing.Graphics graphics, int x, int y, int width, int height)

Parameters

graphics
The System.Drawing.Graphics to draw on.
x
The x-coordinate of the top left of the border rectangle.
y
The y-coordinate of the top left of the border rectangle.
width
The width of the border rectangle.
height
The height of the border rectangle.

Remarks

The Border3DStyle.Etched style is used by default to draw the border.

Requirements

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