Version

DrawBackColor(Control,Graphics,AppearanceData,Rectangle,Rectangle,Boolean,AlphaBlendMode,ColorRenderMode,Blend) Method

Helper method that draws the backcolor based on the setting in the appearance data structure.
Syntax
'Declaration
 
Public Overloads Shared Sub DrawBackColor( _
   ByVal control As Control, _
   ByVal graphics As Graphics, _
   ByRef appearanceData As AppearanceData, _
   ByVal rect As Rectangle, _
   ByVal invalidRect As Rectangle, _
   ByVal enabled As Boolean, _
   ByVal alphaBlendMode As AlphaBlendMode, _
   ByVal colorRenderMode As ColorRenderMode, _
   ByVal blend As Blend _
) 
public static void DrawBackColor( 
   Control control,
   Graphics graphics,
   ref AppearanceData appearanceData,
   Rectangle rect,
   Rectangle invalidRect,
   bool enabled,
   AlphaBlendMode alphaBlendMode,
   ColorRenderMode colorRenderMode,
   Blend blend
)

Parameters

control
The control (required for GradiantAlignment support).
graphics
The graphics object to render on.
appearanceData
Contains backcolor and gradient settings.
rect
The overall rect the area that's going to contain the gradient..
invalidRect
The area to fill.
enabled
False will used the BackColorDisabled.
alphaBlendMode
Determines whether alphablending is enabled
colorRenderMode
Determines how colors are rendered
blend
Defines a blend pattern for a LinearGradientBrush
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