Class ExcelColorXml
Xml access class for color
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Style.XmlAccess
Assembly: EPPlus.dll
Syntax
public sealed class ExcelColorXml : StyleXmlHelper
Properties
Auto
Set the color to automatic
Declaration
public bool Auto { get; set; }
Property Value
Type | Description |
---|---|
System. |
Indexed
Indexed color value
Declaration
public int Indexed { get; set; }
Property Value
Type | Description |
---|---|
System. |
Rgb
The RGB value
Declaration
public string Rgb { get; set; }
Property Value
Type | Description |
---|---|
System. |
Theme
Theme color value
Declaration
public eThemeSchemeColor? Theme { get; set; }
Property Value
Type | Description |
---|---|
System. |
Tint
The Tint value for the color
Declaration
public decimal Tint { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
SetColor(eThemeSchemeColor)
Sets a theme color
Declaration
public void SetColor(eThemeSchemeColor themeColorType)
Parameters
Type | Name | Description |
---|---|---|
e |
themeColorType | The theme color |
SetColor(ExcelIndexedColor)
Sets an indexed color
Declaration
public void SetColor(ExcelIndexedColor indexedColor)
Parameters
Type | Name | Description |
---|---|---|
Excel |
indexedColor | The indexed color |
SetColor(Color)
Sets the color
Declaration
public void SetColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
System. |
color | The color |