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
Indexed
Indexed color value. Returns int.MinValue if indexed colors are not used.
public int Indexed { get; set; }
Property Value
Rgb
The RGB value
public string Rgb { get; set; }
Property Value
Theme
Theme color value
public eThemeSchemeColor? Theme { get; set; }
Property Value
Tint
The Tint value for the color
public decimal Tint { get; set; }
Property Value
Methods
SetColor(eThemeSchemeColor)
Sets a theme color
public void SetColor(eThemeSchemeColor themeColorType)
Parameters
themeColorType
eThemeSchemeColorThe theme color
SetColor(ExcelIndexedColor)
Sets an indexed color
public void SetColor(ExcelIndexedColor indexedColor)
Parameters
indexedColor
ExcelIndexedColorThe indexed color
SetColor(Color)
Sets the color
public void SetColor(Color color)
Parameters
color
ColorThe color