ClassGradientFill
Two-color gradient fill for cell backgrounds, blending between Color1 and Color2 along the specified direction.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class GradientFill : IFill
Inheritance: objectGradientFill
Implements:
Constructors
GradientFill(GradientType, Color, Color)
Initializes a new GradientFill with the specified direction and explicit RGB colors.
Declaration
public GradientFill(GradientType gradientType, Color color1, Color color2)
Parameters
gradientType
Type of the gradient.
color1
The first color.
color2
The second color.
GradientFill(GradientType, ThemableColor, ThemableColor)
Initializes a new GradientFill with the specified direction and theme-aware colors.
Declaration
public GradientFill(GradientType gradientType, ThemableColor color1, ThemableColor color2)
Parameters
gradientType
Type of the gradient.
color1
The first color.
color2
The second color.
Properties
Color1
Gets the starting color in the gradient blend.
Declaration
public ThemableColor Color1 { get; }
Property Value
The first color.
Color2
Gets the ending color in the gradient blend.
Declaration
public ThemableColor Color2 { get; }
Property Value
The second color.
GradientType
Gets the gradient direction and pattern (Horizontal, Vertical, DiagonalUp, FromCenter, etc.).
Declaration
public GradientType GradientType { get; }
Property Value
The type of the gradient.
Methods
GetHashCode()
Serves as a hash function for a particular type.