Version

GradientStyle Enumeration

Specifies if and how a color gradient will be used to fill the background of a UIElement.
Syntax
'Declaration
 
Public Enum GradientStyle 
   Inherits System.Enum
public enum GradientStyle : System.Enum 
Members
MemberDescription
BackwardDiagonalSpecifies a gradient from upper right to lower left.
CircularSpecifies a gradient that starts with the primary color in the center point and migrates toward the secondary color on the edges in a circular pattern.
DefaultThe default style.
EllipticalSpecifies a gradient that starts with the primary color in the center point and migrates toward the secondary color on the edges in a elliptical pattern.
ForwardDiagonalSpecifies a gradient from upper left to lower right.
GlassBottom20Specifies a vertical gradient that provides a glass like appearance with 20% highlight at the bottom.
GlassBottom20BrightSpecifies a vertical gradient that provides a glass like appearance with a bright 20% highlight at the bottom.
GlassBottom37Specifies a vertical gradient that provides a glass like appearance with 37% highlight at the bottom.
GlassBottom37BrightSpecifies a vertical gradient that provides a glass like appearance with a bright 37% highlight at the bottom.
GlassBottom50Specifies a vertical gradient that provides a glass like appearance with 50% highlight at the bottom.
GlassBottom50BrightSpecifies a vertical gradient that provides a glass like appearance with a bright 50% highlight at the bottom.
GlassLeft20Specifies a horizontal gradient that provides a glass like appearance with 20% highlight on the left.
GlassLeft20BrightSpecifies a horizontal gradient that provides a glass like appearance with a bright 20% highlight on the left.
GlassLeft37Specifies a horizontal gradient that provides a glass like appearance with 37% highlight on the left.
GlassLeft37BrightSpecifies a horizontal gradient that provides a glass like appearance with a bright 37% highlight on the left.
GlassLeft50Specifies a horizontal gradient that provides a glass like appearance with 50% highlight on the left.
GlassLeft50BrightSpecifies a horizontal gradient that provides a glass like appearance with a bright 50% highlight on the left.
GlassRight20Specifies a horizontal gradient that provides a glass like appearance with 20% highlight on the right.
GlassRight20BrightSpecifies a horizontal gradient that provides a glass like appearance with a bright 20% highlight on the right.
GlassRight37Specifies a horizontal gradient that provides a glass like appearance with 37% highlight on the right.
GlassRight37BrightSpecifies a horizontal gradient that provides a glass like appearance with a bright 37% highlight on the right.
GlassRight50Specifies a horizontal gradient that provides a glass like appearance with 50% highlight on the right.
GlassRight50BrightSpecifies a horizontal gradient that provides a glass like appearance with a bright 50% highlight on the right.
GlassTop20Specifies a vertical gradient that provides a glass like appearance with 20% highlight at the top.
GlassTop20BrightSpecifies a vertical gradient that provides a glass like appearance with a bright 20% highlight at the top.
GlassTop37Specifies a vertical gradient that provides a glass like appearance with 37% highlight at the top.
GlassTop37BrightSpecifies a vertical gradient that provides a glass like appearance with a bright 37% highlight at the top.
GlassTop50Specifies a vertical gradient that provides a glass like appearance with 50% highlight at the top.
GlassTop50BrightSpecifies a vertical gradient that provides a glass like appearance with a bright 50% highlight at the top.
HorizontalSpecifies a gradient from left to right.
HorizontalBumpSpecifies a gradient that starts with the secondary color in the center and migrates toward the primary color on the left and right.
HorizontalWithGlassBottom50Specifies a horizontal gradient with a vertical glass overlay similar to the Windows Vista Explorer toolbar.
HorizontalWithGlassTop50Specifies a horizontal gradient with a vertical glass overlay similar to the Windows Vista Explorer toolbar.
NoneNo gradient. Use solid or hatch backcolor.
RectangularSpecifies a gradient that starts with the primary color in the center point and migrates toward the secondary color on the edges in a rectangular pattern.
VerticalSpecifies a gradient from top to bottom.
VerticalBumpSpecifies a gradient that starts with the secondary color in the center and migrates toward the primary color on the top and bottom.
VerticalWithGlassLeft50Specifies a vertical gradient with a horizontal glass overlay similar to the Windows Vista Explorer toolbar.
VerticalWithGlassRight50Specifies a vertical gradient with a horizontal glass overlay similar to the Windows Vista Explorer toolbar.
Example
This sample creates a new appearance object and sets the color associated properties. This routine is called from the InitializeLayout event of the UltraWinGrid.

Imports Infragistics.Win
		
  Private Sub SetupActiveCellAppearanceColors()

      Dim appearance As Appearance 

      appearance = New Infragistics.Win.Appearance()

      appearance.ForeColor = Color.White
      appearance.ForeColorDisabled = Color.Gray
      appearance.BackColor = Color.Green
      appearance.BackColor2 = Color.Blue
      appearance.BackColorDisabled = Color.Red
      appearance.BackColorDisabled2 = Color.Yellow
      appearance.BackGradientStyle = GradientStyle.Elliptical
      appearance.BackColorAlpha = Alpha.UseAlphaLevel
      appearance.AlphaLevel = 125

      Me.ultraGrid1.DisplayLayout.Override.CellAppearance = appearance

  End Sub
using Infragistics.Win;

	private void SetupActiveCellAppearanceColors()
	{

		Appearance appearance = new Appearance();

		appearance.ForeColor = Color.White ;
		appearance.ForeColorDisabled = Color.Gray ;
		appearance.BackColor = Color.Green ;
		appearance.BackColor2 = Color.Blue;
		appearance.BackColorDisabled = Color.Red;
		appearance.BackColorDisabled2 = Color.Yellow;
		appearance.BackGradientStyle = GradientStyle.Elliptical;
		appearance.BackColorAlpha = Alpha.UseAlphaLevel;
		appearance.AlphaLevel = 125;

		this.ultraGrid1.DisplayLayout.Override.CellAppearance  = appearance;

	}
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