New to Telerik UI for WinFormsStart a free 30-day trial

Gradient cell fill defined by a gradient type and two theme or RGB colors.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

C#
public class SpreadGradientFill : ISpreadFill

Inheritance: objectSpreadGradientFill

Implements: ISpreadFill

Constructors

Initializes a new instance of the SpreadGradientFill class.

C#
public SpreadGradientFill(SpreadGradientType gradientType, SpreadThemableColor color1, SpreadThemableColor color2)
Parameters:gradientTypeSpreadGradientType

Type of the gradient.

color1SpreadThemableColor

The color1 themable color.

color2SpreadThemableColor

The color2 themable color.

Properties

Starting gradient color.

C#
public SpreadThemableColor Color1 { get; }
Property Value:

The color1 themable color.

Ending gradient color.

C#
public SpreadThemableColor Color2 { get; }
Property Value:

The color2 themable color.

Gradient orientation or pattern.

C#
public SpreadGradientType GradientType { get; }
Property Value:

The type of the gradient.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

Returns true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()