Class ExcelDxfGradientFillColorCollection
A collection of colors and their positions used for a gradiant fill.
Inherited Members
Namespace: OfficeOpenXml.Style.Dxf
Assembly: EPPlus.dll
Syntax
public class ExcelDxfGradientFillColorCollection : DxfStyleBase, IEnumerable<ExcelDxfGradientFillColor>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
HasValue
If the style has any value set
Declaration
public override bool HasValue { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
this[double]
Gets the first occurance with the color with the specified position
Declaration
public ExcelDxfGradientFillColor this[double position] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| double | position | The position in percentage |
Property Value
| Type | Description |
|---|---|
| ExcelDxfGradientFillColor | The color |
this[int]
Indexer for the collection
Declaration
public ExcelDxfGradientFillColor this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index in the collection |
Property Value
| Type | Description |
|---|---|
| ExcelDxfGradientFillColor | The color |
Methods
Add(double)
Adds a RGB color at the specified position Where position is in percent
Declaration
public ExcelDxfGradientFillColor Add(double position)
Parameters
| Type | Name | Description |
|---|---|---|
| double | position | The position from 0 to 100% |
Returns
| Type | Description |
|---|---|
| ExcelDxfGradientFillColor | The gradient color position object |
Clear()
Clear all style items from the collection
Declaration
public override void Clear()
Overrides
GetEnumerator()
Get the enumerator
Declaration
public IEnumerator<ExcelDxfGradientFillColor> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ExcelDxfGradientFillColor> | The enumerator |
Remove(ExcelDxfGradientFillColor)
Remove the style from the collection
Declaration
public void Remove(ExcelDxfGradientFillColor item)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelDxfGradientFillColor | item |
RemoveAt(double)
Remove the style at the position from the collection.
Declaration
public void RemoveAt(double position)
Parameters
| Type | Name | Description |
|---|---|---|
| double | position |
RemoveAt(int)
Remove the style at the index in the collection.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |