Version

CreateGlassBrush Method

Creates a LinearGradientBrush to render a glass effect via the specified parameters.
Syntax
'Declaration
 
Public Shared Function CreateGlassBrush( _
   ByVal backColor As Color, _
   ByVal backColor2 As Color, _
   ByVal gradientStyle As GlassGradientStyle _
) As LinearGradientBrush
public static LinearGradientBrush CreateGlassBrush( 
   Color backColor,
   Color backColor2,
   GlassGradientStyle gradientStyle
)

Parameters

backColor
The main Color used in rendering glass.
backColor2
The secondary Color used in rendering glass.
gradientStyle
Defines the style of the glass to draw.

Return Value

Remarks
This method is used to mimick the glass gradient styles used in standard Infragistics WinForms controls.
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