Table of Contents

Class ExcelColorXml

Namespace
OfficeOpenXml.Style.XmlAccess
Assembly
EPPlus.dll

Xml access class for color

public sealed class ExcelColorXml : StyleXmlHelper
Inheritance
ExcelColorXml
Inherited Members

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 decimal Tint { get; set; }

Property Value

decimal

Methods

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

SetColor(Color)

Sets the color

public void SetColor(Color color)

Parameters

color Color

The color