Skip to content

Class ExcelDxfColor

Namespace: OfficeOpenXml.Style.Dxf
Assembly: EPPlus.dll

A color in a differential formatting record

public class ExcelDxfColor : DxfStyleBase

Inheritance

object ← DxfStyleBase ← ExcelDxfColor

Inherited Members

DxfStyleBase.Clear()
DxfStyleBase.HasValue
DxfStyleBase.SetValueColor(XmlHelper, string, ExcelDxfColor)
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

Auto

Gets or sets the color to automatic

public bool? Auto { get; set; }

Property Value

bool?

Color

Sets the color.

public Color? Color { get; set; }

Property Value

Color?

HasValue

If the object has any properties set

public override bool HasValue { get; }

Property Value

bool

Index

Gets or sets an indexed color

public int? Index { get; set; }

Property Value

int?

Theme

Gets or sets a theme color

public eThemeSchemeColor? Theme { get; set; }

Property Value

eThemeSchemeColor?

Tint

Gets or sets the Tint value for the color

public double? Tint { get; set; }

Property Value

double?

Methods

Clear()

Clears all properties

public override void Clear()

SetAuto()

Set the color to automatic

public void SetAuto()

SetColor(Color)

Set the color of the drawing based on an RGB color. This method will remove any previous eThemeSchemeColor?text=ThemeSchemeColor, ExcelIndexedColor?text=IndexedColor or Automatic color used.

public void SetColor(Color color)

Parameters

color Color

The color

SetColor(eThemeSchemeColor)

Set the color of the drawing based on an eThemeSchemeColor color. This method will remove any previous Color, ExcelIndexedColor?text=IndexedColor or Automatic color used.

public void SetColor(eThemeSchemeColor color)

Parameters

color eThemeSchemeColor

The color

SetColor(ExcelIndexedColor)

Set the color of the drawing based on an ExcelIndexedColor color. This method will remove any previous Color?text=Color, eThemeSchemeColor?text=ThemeSchemeColor or Automatic color used.

public void SetColor(ExcelIndexedColor color)

Parameters

color ExcelIndexedColor

The color