Version

DrawOffice2013ButtonBorders(Graphics,Rectangle,Rectangle,Corners,Pen,Pen) Method

Draws button borders in Office2013 style.
Syntax
'Declaration
 
Public Overloads Shared Sub DrawOffice2013ButtonBorders( _
   ByVal g As Graphics, _
   ByVal rect As Rectangle, _
   ByVal invalidRect As Rectangle, _
   ByVal roundedCorners As Corners, _
   ByVal outerPen As Pen, _
   ByVal innerPen As Pen _
) 
public static void DrawOffice2013ButtonBorders( 
   Graphics g,
   Rectangle rect,
   Rectangle invalidRect,
   Corners roundedCorners,
   Pen outerPen,
   Pen innerPen
)

Parameters

g
The System.Drawing.Graphics object used to perform the drawing operation.
rect
A System.Drawing.Rectangle describing the total area of the button.
invalidRect
A Rectangle describing the area to fill.
roundedCorners
An enumeration specifying which corners should be rounded.
outerPen
The System.Drawing.Pen used to draw the borders of the button.
innerPen
The System.Drawing.Pen used to draw the inner borders of the button.
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