Skip to content

Class ExcelColorXml

Namespace: OfficeOpenXml.Style.XmlAccess
Assembly: EPPlus.dll

Xml access class for color

public sealed class ExcelColorXml : StyleXmlHelper

Inheritance

object ← XmlHelper ← StyleXmlHelper ← ExcelColorXml

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

Auto

Set the color to automatic

public bool Auto { get; set; }

Property Value

bool

Indexed

Indexed color value. Returns int.MinValue if indexed colors are not used.

public int Indexed { get; set; }

Property Value

int

Rgb

The RGB value

public string Rgb { get; set; }

Property Value

string

Theme

Theme color value

public eThemeSchemeColor? Theme { get; set; }

Property Value

eThemeSchemeColor?

Tint

The Tint value for the color

public double Tint { get; set; }

Property Value

double

Methods

SetColor(Color)

Sets the color

public void SetColor(Color color)

Parameters

color Color

The color

SetColor(eThemeSchemeColor)

Sets a theme color

public void SetColor(eThemeSchemeColor themeColorType)

Parameters

themeColorType eThemeSchemeColor

The theme color

SetColor(ExcelIndexedColor)

Sets an indexed color

public void SetColor(ExcelIndexedColor indexedColor)

Parameters

indexedColor ExcelIndexedColor

The indexed color