Version

DrawBorders(UIElementBorderStyle,Border3DSide,Corners,Pen,Pen,Pen,Pen,Rectangle,Rectangle) Method

Draws borders around a supplied rect
Syntax
'Declaration
 
Public Overloads Sub DrawBorders( _
   ByVal style As UIElementBorderStyle, _
   ByVal sides As Border3DSide, _
   ByVal roundedCorners As Corners, _
   ByVal outerLeftTopPen As Pen, _
   ByVal outerRightBottomPen As Pen, _
   ByVal innerLeftTopPen As Pen, _
   ByVal innerRightBottomPen As Pen, _
   ByVal rect As Rectangle, _
   ByVal clipRect As Rectangle _
) 

Parameters

style
The style of the borders
sides
Bit flags indiating which sides to draw
roundedCorners
The corners that should be rounded. This is ignored for non-rounded border styles
outerLeftTopPen
The pen which will be used to draw the left and top of the outer border.
outerRightBottomPen
The pen which will be used to draw the right and bottom of the outer border.
innerLeftTopPen
The pen which will be used to draw the left and top of the inner border.
innerRightBottomPen
The pen which will be used to draw the right and bottom of the inner border.
rect
The borders are drawn inside this rectangle
clipRect
Nothing is drawn outside of this area
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also