Class GradientFill
Represents gradient fill settings for a shape.
Inherited Members
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class GradientFill
Constructors
GradientFill()
Initializes a new instance of the GradientFill class.
Declaration
public GradientFill()
Properties
Angle
Specifies the gradient angle in degrees.
Declaration
public int Angle { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
GradientStops
Gets the collection of gradient stops.
Declaration
public GradientStopCollection GradientStops { get; }
Property Value
| Type | Description |
|---|---|
| GradientStopCollection |
RotateWithShape
Gets or sets whether the gradient rotates with the shape.
Declaration
public bool RotateWithShape { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
Specifies the gradient type.
Declaration
public GradientType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| GradientType |
Methods
Equals(GradientFill)
Determines whether the specified gradient fill is equal to this instance.
Declaration
protected bool Equals(GradientFill other)
Parameters
| Type | Name | Description |
|---|---|---|
| GradientFill | other | The other gradient fill. |
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. |
Overrides
SetDirection(GradientDirection)
Sets the gradient direction.
Declaration
public void SetDirection(GradientDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| GradientDirection | direction | The gradient direction. |