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
positiondoubleThe position in percentage
Property Value
- ExcelDrawingGradientFillColor
The color
this[int]
Indexer for the collection
public ExcelDrawingGradientFillColor this[int index] { get; }
Parameters
indexintThe 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
positiondoubleThe position
huedoubleThe hue part. Ranges from 0-360
saturationdoubleThe saturation part. Percentage
luminancedoubleThe luminance part. Percentage
AddPreset(double, ePresetColor)
Adds a HSL color at the specified position
public void AddPreset(double position, ePresetColor color)
Parameters
positiondoubleThe position
colorePresetColorThe 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
positiondoubleThe position
redPercentagedoubleThe percentage of red
greenPercentagedoubleThe percentage of green
bluePercentagedoubleThe percentage of blue
AddScheme(double, eSchemeColor)
Adds a theme color at the specified position
public void AddScheme(double position, eSchemeColor color)
Parameters
positiondoubleThe position
coloreSchemeColorThe theme color
AddSystem(double, eSystemColor)
Adds a system color at the specified position
public void AddSystem(double position, eSystemColor color)
Parameters
positiondoubleThe position
coloreSystemColorThe system color
GetEnumerator()
Gets the enumerator for the collection
public IEnumerator<ExcelDrawingGradientFillColor> GetEnumerator()
Returns
- IEnumerator<ExcelDrawingGradientFillColor>
The enumerator