Version

DrawOffice2007RibbonButtonBorders(UIElementDrawParams,Corners,Color,Color,Color) Method

Draws a border in the style of an an Office2007 Ribbon Button.
Syntax
'Declaration
 
Public Overloads Shared Sub DrawOffice2007RibbonButtonBorders( _
   ByRef drawParams As UIElementDrawParams, _
   ByVal corners As Corners, _
   ByVal borderColorDark As Color, _
   ByVal borderColorLight As Color, _
   ByVal borderColorInner As Color _
) 
public static void DrawOffice2007RibbonButtonBorders( 
   ref UIElementDrawParams drawParams,
   Corners corners,
   Color borderColorDark,
   Color borderColorLight,
   Color borderColorInner
)

Parameters

drawParams
The UIElementDrawParams used to provide rendering information.
corners
An enumeration specifying which corners should be rounded.
borderColorDark
The System.Drawing.Color of the darker border color gradient.
borderColorLight
The lighter Color of the gradient.
borderColorInner
The Color of the inner button border.
Remarks

Office2007 Ribbon button borders are characterized by an outer border which is drawn with a vertical gradient and an inner border which is partially transparent and modifies the color of the Background. The border colors are taken from the drawParams. The outer colors are determined by the BorderColor and BorderColor2. The BorderColor3DBase is used as the inner border color.

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