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¶
object ← ExcelDrawingGradientFillColorList
Implements¶
IEnumerable
IEnumerable<ExcelDrawingGradientFillColor>
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Count¶
Number of items in the collection
Property Value¶
this[int]¶
Indexer for the collection
Property Value¶
this[double]¶
Gets the first occurance with the color with the specified position
Property Value¶
Methods¶
AddHsl(double, double, double, double)¶
Adds a HSL color at the specified position
Parameters¶
position double
The position
hue double
The hue part. Ranges from 0-360
saturation double
The saturation part. Percentage
luminance double
The luminance part. Percentage
AddPreset(double, ePresetColor)¶
Adds a HSL color at the specified position
Parameters¶
position double
The position
color ePresetColor
The preset color
AddRgb(double, Color)¶
Adds a RGB color at the specified position
Parameters¶
position double
The position
color Color
The Color
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 double
The position
redPercentage double
The percentage of red
greenPercentage double
The percentage of green
bluePercentage double
The percentage of blue
AddScheme(double, eSchemeColor)¶
Adds a theme color at the specified position
Parameters¶
position double
The position
color eSchemeColor
The theme color
AddSystem(double, eSystemColor)¶
Adds a system color at the specified position
Parameters¶
position double
The position
color eSystemColor
The system color
GetEnumerator()¶
Gets the enumerator for the collection
Returns¶
IEnumerator<ExcelDrawingGradientFillColor>
The enumerator