Class ExcelDrawingGradientFillColorList
- Namespace
- OfficeOpenXml.Drawing.Style.Fill
- Assembly
- EPPlus.dll
A collection of colors and their positions used for a gradiant fill.
public class ExcelDrawingGradientFillColorList : IEnumerable<ExcelDrawingGradientFillColor>, IEnumerable
- Inheritance
-
ExcelDrawingGradientFillColorList
- Implements
- Inherited Members
Properties
Count
Number of items in the collection
public int Count { get; }
Property Value
this[double]
Gets the first occurance with the color with the specified position
public ExcelDrawingGradientFillColor this[double position] { get; }
Parameters
position
doubleThe position in percentage
Property Value
- ExcelDrawingGradientFillColor
The color
this[int]
Indexer for the collection
public ExcelDrawingGradientFillColor this[int index] { get; }
Parameters
index
intThe index in the collection
Property Value
- ExcelDrawingGradientFillColor
The color
Methods
AddHsl(double, double, double, double)
Adds a HSL color at the specified position
public void AddHsl(double position, double hue, double saturation, double luminance)
Parameters
position
doubleThe position
hue
doubleThe hue part. Ranges from 0-360
saturation
doubleThe saturation part. Percentage
luminance
doubleThe luminance part. Percentage
AddPreset(double, ePresetColor)
Adds a HSL color at the specified position
public void AddPreset(double position, ePresetColor color)
Parameters
position
doubleThe position
color
ePresetColorThe preset color
AddRgb(double, Color)
Adds a RGB color at the specified position
public void AddRgb(double position, Color color)
Parameters
AddRgbPercentage(double, double, double, double)
Adds a RGB percentage color at the specified position
public void AddRgbPercentage(double position, double redPercentage, double greenPercentage, double bluePercentage)
Parameters
position
doubleThe position
redPercentage
doubleThe percentage of red
greenPercentage
doubleThe percentage of green
bluePercentage
doubleThe percentage of blue
AddScheme(double, eSchemeColor)
Adds a theme color at the specified position
public void AddScheme(double position, eSchemeColor color)
Parameters
position
doubleThe position
color
eSchemeColorThe theme color
AddSystem(double, eSystemColor)
Adds a system color at the specified position
public void AddSystem(double position, eSystemColor color)
Parameters
position
doubleThe position
color
eSystemColorThe system color
GetEnumerator()
Gets the enumerator for the collection
public IEnumerator<ExcelDrawingGradientFillColor> GetEnumerator()
Returns
- IEnumerator<ExcelDrawingGradientFillColor>
The enumerator