Skip to content

Class ExcelSparklineColor

Namespace: OfficeOpenXml.Sparkline
Assembly: EPPlus.dll

Sparkline colors

public class ExcelSparklineColor : XmlHelper

Inheritance

object ← XmlHelper ← ExcelSparklineColor

Inherited Members

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

Properties

Auto

Color is set to automatic

public bool Auto { get; }

Property Value

bool

Indexed

Indexed color

public int Indexed { get; set; }

Property Value

int

Rgb

RGB

public string Rgb { get; }

Property Value

string

Theme

The theme color

public eThemeSchemeColor? Theme { get; }

Property Value

eThemeSchemeColor?

Tint

The tint value

public decimal Tint { get; set; }

Property Value

decimal

Methods

SetAuto()

Sets the color to auto

public void SetAuto()

SetColor(Color)

Sets a color

public void SetColor(Color color)

Parameters

color Color

The color

SetColor(eThemeSchemeColor)

Sets a theme color

public void SetColor(eThemeSchemeColor color)

Parameters

color eThemeSchemeColor

The color

SetColor(ExcelIndexedColor)

Sets an indexed color

public void SetColor(ExcelIndexedColor color)

Parameters

color ExcelIndexedColor

The color