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
HasValue
If the style has any value set
public override bool HasValue { get; }
Property Value
this[double]
Gets the first occurance with the color with the specified position
public ExcelDxfGradientFillColor this[double position] { get; }
Parameters
position
doubleThe position in percentage
Property Value
- ExcelDxfGradientFillColor
The color
this[int]
Indexer for the collection
public ExcelDxfGradientFillColor this[int index] { get; }
Parameters
index
intThe 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
doubleThe 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
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