Class GradientStop
Represents a single stop in a gradient fill.
Inherited Members
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class GradientStop
Constructors
GradientStop()
Initializes a new instance of the GradientStop class.
Declaration
public GradientStop()
GradientStop(decimal, DrawingColor)
Initializes a new instance of the GradientStop class with the specified position and color.
Declaration
public GradientStop(decimal position, DrawingColor color)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | position | The position of the gradient stop (between 0 and 1). |
| DrawingColor | color | The color of the gradient stop. |
Properties
Color
Specifies the color as a Color.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
DrawingColor
Specifies the color as a DrawingColor.
Declaration
public DrawingColor DrawingColor { get; set; }
Property Value
| Type | Description |
|---|---|
| DrawingColor |
Position
Specifies the position of the gradient stop (between 0 and 1).
Declaration
public decimal Position { get; set; }
Property Value
| Type | Description |
|---|---|
| decimal |
Transparency
Specifies the transparency of the gradient stop.
Declaration
public decimal Transparency { get; set; }
Property Value
| Type | Description |
|---|---|
| decimal |
Methods
Equals(GradientStop)
Determines whether the specified gradient stop is equal to this instance.
Declaration
protected bool Equals(GradientStop other)
Parameters
| Type | Name | Description |
|---|---|---|
| GradientStop | other | The other gradient stop. |
Returns
| Type | Description |
|---|---|
| bool | True if equal, false otherwise. |
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare. |
Returns
| Type | Description |
|---|---|
| bool | True if equal, false otherwise. |
Overrides
GetHashCode()
Gets the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |