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

Class GradientFill

Represents gradient fill settings for a shape.

Inheritance
object
GradientFill
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
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
object.Equals(object)

GetHashCode()

Gets the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

The hash code.

Overrides
object.GetHashCode()

SetDirection(GradientDirection)

Sets the gradient direction.

Declaration
public void SetDirection(GradientDirection direction)
Parameters
Type Name Description
GradientDirection direction

The gradient direction.

Back to top

DR-IT Software documentation

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

Generated by DocFX