GradientFill
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
Initializes a new GradientFill with the specified direction and explicit RGB colors.
public GradientFill(GradientType gradientType, Color color1, Color color2)
Type of the gradient.
color1ColorThe first color.
color2ColorThe second color.
Initializes a new GradientFill with the specified direction and theme-aware colors.
public GradientFill(GradientType gradientType, ThemableColor color1, ThemableColor color2)
Type of the gradient.
color1ThemableColorThe first color.
color2ThemableColorThe second color.
Properties
Gets the starting color in the gradient blend.
public ThemableColor Color1 { get; }
The first color.
Gets the ending color in the gradient blend.
public ThemableColor Color2 { get; }
The second color.
Gets the gradient direction and pattern (Horizontal, Vertical, DiagonalUp, FromCenter, etc.).
public GradientType GradientType { get; }
The type of the gradient.