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, Color, Int32, ButtonBorderStyle, Color, Int32, ButtonBorderStyle, 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 leftColor As Color, _
   ByVal leftWidth As Integer, _
   ByVal leftStyle As ButtonBorderStyle, _
   ByVal topColor As Color, _
   ByVal topWidth As Integer, _
   ByVal topStyle As ButtonBorderStyle, _
   ByVal rightColor As Color, _
   ByVal rightWidth As Integer, _
   ByVal rightStyle As ButtonBorderStyle, _
   ByVal bottomColor As Color, _
   ByVal bottomWidth As Integer, _
   ByVal bottomStyle As ButtonBorderStyle _
)
[C#]
public static void DrawBorder(
   Graphics g,
   Rectangle bounds,
   Color leftColor,
   int leftWidth,
   ButtonBorderStyle leftStyle,
   Color topColor,
   int topWidth,
   ButtonBorderStyle topStyle,
   Color rightColor,
   int rightWidth,
   ButtonBorderStyle rightStyle,
   Color bottomColor,
   int bottomWidth,
   ButtonBorderStyle bottomStyle
);
[C++]
public: static void DrawBorder(
   Graphics* g,
   Rectangle bounds,
   Color leftColor,
   int leftWidth,
   ButtonBorderStyle leftStyle,
   Color topColor,
   int topWidth,
   ButtonBorderStyle topStyle,
   Color rightColor,
   int rightWidth,
   ButtonBorderStyle rightStyle,
   Color bottomColor,
   int bottomWidth,
   ButtonBorderStyle bottomStyle
);
[JScript]
public static function DrawBorder(
   g : Graphics,
   bounds : Rectangle,
   leftColor : Color,
   leftWidth : int,
   leftStyle : ButtonBorderStyle,
   topColor : Color,
   topWidth : int,
   topStyle : ButtonBorderStyle,
   rightColor : Color,
   rightWidth : int,
   rightStyle : ButtonBorderStyle,
   bottomColor : Color,
   bottomWidth : int,
   bottomStyle : ButtonBorderStyle
);

Parameters

g
The graphics object to draw to.
bounds
The dimensions of the border.
leftColor
The color of the left of the border.
leftWidth
The width of the left border.
leftStyle
The style of the left border.
topColor
The color of the top of the border.
topWidth
The width of the top border.
topStyle
The style of the top border.
rightColor
The color of the right of the border.
rightWidth
The width of the right border.
rightStyle
The style of the right border.
bottomColor
The color of the bottom of the border.
bottomWidth
The width of the left border.
bottomStyle
The style of the bottom border.

See Also

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