• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class GradientStop

Represents a color stop in a gradient fill.

Inheritance
object
GradientStop
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class GradientStop
Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

Constructors

GradientStop()

Initializes a new GradientStop for the supplied workbook data.

Declaration
public GradientStop()
Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

Properties

Color

Specifies the color of this gradient stop as a Color.

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color
Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

Position

Specifies the position of this gradient stop (0.0 to 1.0).

Declaration
public double Position { get; set; }
Property Value
Type Description
double
Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

SpreadsheetColor

Specifies the color of this gradient stop.

Declaration
public SpreadsheetColor SpreadsheetColor { get; set; }
Property Value
Type Description
SpreadsheetColor
Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

Methods

Clone()

Exposes the clone associated with GradientStop.

Declaration
public GradientStop Clone()
Returns
Type Description
GradientStop

The clone returned by the operation.

Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

Equals(object)

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

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with the current object.

Returns
Type Description
bool

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

Overrides
object.Equals(object)
Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

GetHashCode()

Serves as a hash function for a particular type.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()
Remarks

A GradientStop defines a color and its position within a gradient. Multiple stops create the color transition effect in a GradientCellFill.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX