Skip to content

Class ExcelDxfGradientFillColorCollection

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

A collection of colors and their positions used for a gradiant fill.

public class ExcelDxfGradientFillColorCollection : DxfStyleBase, IEnumerable<ExcelDxfGradientFillColor>, IEnumerable

Inheritance

object ← DxfStyleBase ← ExcelDxfGradientFillColorCollection

Implements

IEnumerable
IEnumerable<ExcelDxfGradientFillColor>

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

Count

Number of items in the collection

public int Count { get; }

Property Value

int

HasValue

If the style has any value set

public override bool HasValue { get; }

Property Value

bool

this[int]

Indexer for the collection

public ExcelDxfGradientFillColor this[int index] { get; }

Property Value

ExcelDxfGradientFillColor

this[double]

Gets the first occurance with the color with the specified position

public ExcelDxfGradientFillColor this[double position] { get; }

Property Value

ExcelDxfGradientFillColor

Methods

Add(double)

Adds a RGB color at the specified position Where position is in percent

public ExcelDxfGradientFillColor Add(double position)

Parameters

position double

The position from 0 to 100%

Returns

ExcelDxfGradientFillColor

The gradient color position object

Clear()

Clear all style items from the collection

public override void Clear()

GetEnumerator()

Get the enumerator

public IEnumerator<ExcelDxfGradientFillColor> GetEnumerator()

Returns

IEnumerator<ExcelDxfGradientFillColor>

The enumerator

Remove(ExcelDxfGradientFillColor)

Remove the style from the collection

public void Remove(ExcelDxfGradientFillColor item)

Parameters

item ExcelDxfGradientFillColor

RemoveAt(int)

Remove the style at the index in the collection.

public void RemoveAt(int index)

Parameters

index int

RemoveAt(double)

Remove the style at the position from the collection.

public void RemoveAt(double position)

Parameters

position double