Class
SpreadGradientFill

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:

cs-api-definition
public class SpreadGradientFill : ISpreadFill

Inheritance: objectSpreadGradientFill

Implements: ISpreadFill

Constructors

SpreadGradientFill(SpreadGradientType, SpreadThemableColor, SpreadThemableColor)

Initializes a new instance of the SpreadGradientFill class.

Declaration

cs-api-definition
public SpreadGradientFill(SpreadGradientType gradientType, SpreadThemableColor color1, SpreadThemableColor color2)

Parameters

gradientType

SpreadGradientType

Type of the gradient.

color1

SpreadThemableColor

The color1 themable color.

color2

SpreadThemableColor

The color2 themable color.

Properties

Color1

Starting gradient color.

Declaration

cs-api-definition
public SpreadThemableColor Color1 { get; }

Property Value

SpreadThemableColor

The color1 themable color.

Color2

Ending gradient color.

Declaration

cs-api-definition
public SpreadThemableColor Color2 { get; }

Property Value

SpreadThemableColor

The color2 themable color.

GradientType

Gradient orientation or pattern.

Declaration

cs-api-definition
public SpreadGradientType GradientType { get; }

Property Value

SpreadGradientType

The type of the gradient.

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()