NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlPaint.DrawBorder (Graphics, Rectangle, Color, Int32, ButtonBorderStyle)

Draws a border of the specified style and color to the given graphics.

[Visual Basic]
Overloads Public Shared Sub DrawBorder( _
   ByVal g As Graphics, _
   ByVal bounds As Rectangle, _
   ByVal color As Color, _
   ByVal width As Integer, _
   ByVal style As ButtonBorderStyle _
)
[C#]
public static void DrawBorder(
   Graphics g,
   Rectangle bounds,
   Color color,
   int width,
   ButtonBorderStyle style
);
[C++]
public: static void DrawBorder(
   Graphics* g,
   Rectangle bounds,
   Color color,
   int width,
   ButtonBorderStyle style
);
[JScript]
public static function DrawBorder(
   g : Graphics,
   bounds : Rectangle,
   color : Color,
   width : int,
   style : ButtonBorderStyle
);

Parameters

g
The graphics object to draw to.
bounds
The dimensions of the border.
color
The color of each of the border sides.
width
The width of the border, in pixels.
style
The style of border to draw.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace | ControlPaint.DrawBorder Overload List | ButtonBorderStyle