Show / Hide Table of Contents

Class ExcelColorXml

Xml access class for color

Inheritance
System.Object
XmlHelper
StyleXmlHelper
ExcelColorXml
Inherited Members
StyleXmlHelper.GetBoolValue(XmlNode, String)
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.Boolean

Indexed

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

Declaration
public int Indexed { get; set; }
Property Value
Type Description
System.Int32

Rgb

The RGB value

Declaration
public string Rgb { get; set; }
Property Value
Type Description
System.String

Theme

Theme color value

Declaration
public eThemeSchemeColor? Theme { get; set; }
Property Value
Type Description
System.Nullable<eThemeSchemeColor>

Tint

The Tint value for the color

Declaration
public decimal Tint { get; set; }
Property Value
Type Description
System.Decimal

Methods

SetColor(eThemeSchemeColor)

Sets a theme color

Declaration
public void SetColor(eThemeSchemeColor themeColorType)
Parameters
Type Name Description
eThemeSchemeColor themeColorType

The theme color

SetColor(ExcelIndexedColor)

Sets an indexed color

Declaration
public void SetColor(ExcelIndexedColor indexedColor)
Parameters
Type Name Description
ExcelIndexedColor indexedColor

The indexed color

SetColor(Color)

Sets the color

Declaration
public void SetColor(Color color)
Parameters
Type Name Description
System.Drawing.Color color

The color

Back to top Generated by DocFX