Class GradientStop
Represents a color stop in a gradient fill.
Inherited Members
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)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
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
Remarks
A GradientStop defines a color and its position within a gradient.
Multiple stops create the color transition effect in a GradientCellFill.