Show / Hide Table of Contents

Class ExcelDrawingGradientFillColorList

A collection of colors and their positions used for a gradiant fill.

Inheritance
object
ExcelDrawingGradientFillColorList
Implements
IEnumerable<ExcelDrawingGradientFillColor>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OfficeOpenXml.Drawing.Style.Fill
Assembly: EPPlus.dll
Syntax
public class ExcelDrawingGradientFillColorList : IEnumerable<ExcelDrawingGradientFillColor>, IEnumerable

Properties

Count

Number of items in the collection

Declaration
public int Count { get; }
Property Value
Type Description
int

this[double]

Gets the first occurance with the color with the specified position

Declaration
public ExcelDrawingGradientFillColor this[double position] { get; }
Parameters
Type Name Description
double position

The position in percentage

Property Value
Type Description
ExcelDrawingGradientFillColor

The color

this[int]

Indexer for the collection

Declaration
public ExcelDrawingGradientFillColor this[int index] { get; }
Parameters
Type Name Description
int index

The index in the collection

Property Value
Type Description
ExcelDrawingGradientFillColor

The color

Methods

AddHsl(double, double, double, double)

Adds a HSL color at the specified position

Declaration
public void AddHsl(double position, double hue, double saturation, double luminance)
Parameters
Type Name Description
double position

The position

double hue

The hue part. Ranges from 0-360

double saturation

The saturation part. Percentage

double luminance

The luminance part. Percentage

AddPreset(double, ePresetColor)

Adds a HSL color at the specified position

Declaration
public void AddPreset(double position, ePresetColor color)
Parameters
Type Name Description
double position

The position

ePresetColor color

The preset color

AddRgb(double, Color)

Adds a RGB color at the specified position

Declaration
public void AddRgb(double position, Color color)
Parameters
Type Name Description
double position

The position

Color color

The Color

AddRgbPercentage(double, double, double, double)

Adds a RGB percentage color at the specified position

Declaration
public void AddRgbPercentage(double position, double redPercentage, double greenPercentage, double bluePercentage)
Parameters
Type Name Description
double position

The position

double redPercentage

The percentage of red

double greenPercentage

The percentage of green

double bluePercentage

The percentage of blue

AddScheme(double, eSchemeColor)

Adds a theme color at the specified position

Declaration
public void AddScheme(double position, eSchemeColor color)
Parameters
Type Name Description
double position

The position

eSchemeColor color

The theme color

AddSystem(double, eSystemColor)

Adds a system color at the specified position

Declaration
public void AddSystem(double position, eSystemColor color)
Parameters
Type Name Description
double position

The position

eSystemColor color

The system color

GetEnumerator()

Gets the enumerator for the collection

Declaration
public IEnumerator<ExcelDrawingGradientFillColor> GetEnumerator()
Returns
Type Description
IEnumerator<ExcelDrawingGradientFillColor>

The enumerator

Implements

IEnumerable<T>
IEnumerable
In this article
Back to top Generated by DocFX