Table of Contents

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
ExcelDxfGradientFillColorCollection
Implements
Inherited Members

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[double]

Gets the first occurance with the color with the specified position

public ExcelDxfGradientFillColor this[double position] { get; }

Parameters

position double

The position in percentage

Property Value

ExcelDxfGradientFillColor

The color

this[int]

Indexer for the collection

public ExcelDxfGradientFillColor this[int index] { get; }

Parameters

index int

The index in the collection

Property Value

ExcelDxfGradientFillColor

The color

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(double)

Remove the style at the position from the collection.

public void RemoveAt(double position)

Parameters

position double

RemoveAt(int)

Remove the style at the index in the collection.

public void RemoveAt(int index)

Parameters

index int