Skip to content

Class ExcelDxfGradientFill

Namespace: OfficeOpenXml.Style.Dxf
Assembly: EPPlus.dll

Represents a gradient fill used for differential style formatting.

public class ExcelDxfGradientFill : DxfStyleBase

Inheritance

object ← DxfStyleBase ← ExcelDxfGradientFill

Inherited Members

DxfStyleBase.Clear()
DxfStyleBase.HasValue
DxfStyleBase.SetValueColor(XmlHelper, string, ExcelDxfColor)
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

Bottom

The bottom position of the inner rectangle (color 1).

public double? Bottom { get; set; }

Property Value

double?

Colors

A collection of colors and percents for the gradient fill

public ExcelDxfGradientFillColorCollection Colors { get; }

Property Value

ExcelDxfGradientFillColorCollection

Degree

Angle of the linear gradient

public double? Degree { get; set; }

Property Value

double?

GradientType

Type of gradient fill

public eDxfGradientFillType? GradientType { get; set; }

Property Value

eDxfGradientFillType?

HasValue

If the object has any properties set

public override bool HasValue { get; }

Property Value

bool

Left

The left position of the inner rectangle (color 1).

public double? Left { get; set; }

Property Value

double?

The right position of the inner rectangle (color 1).

public double? Right { get; set; }

Property Value

double?

Top

The top position of the inner rectangle (color 1).

public double? Top { get; set; }

Property Value

double?

Methods

Clear()

Clears all properties

public override void Clear()